• Resolved techwpdrift

    (@techwpdrift)


    Hi, we detected that Polylang 2.8.2 is making a lot of updates in wp-options table. More specifically WHERE option_name = ‘rewrite_rules’ in wp-options.

    That updates produce bottlenecks and slow downs in our website because every time there’s a flush rewrite in our code, a new update to that field appear in our database. And this just happens constantly if multiple users open different pages in multiple languages.

    Imagine you have:
    – English
    – Spanish
    – Italian

    If 5 users visit multiple languages, we see a new update to rewrite_rules. Why is that happening? Similar issue described here: https://github.com/hyyan/woo-poly-integration/issues/248

    Once we asign all pages to a unique language, problem disappear. How can we solve it in order to continue with Polylang in our website with custom post types?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    Polylang should never update rewrite rules on frontend. Basically we sometimes delete them on admin side when you change options that may require a rewrite rules update. The rewrite rules are then evaluated during the next paged loaded.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with multiple languages updating Rewrite rules’ is closed to new replies.