• Resolved Guaven Labs

    (@elvinhaci)


    In polylang/integrations/cache/cache-compat.php you have added new function&filter called ‘clean_post_cache’ added since 3.0.5. – it is used for wp-rocket’s clean hook.

    That function sets default language for whole session when wp-rocket’s clean_post_cache triggers.

    And if this hook is called at front-end, it ruins whole the website language(even causes infinite loop in some cases ) language session and switches the language.

    Can you add some “is_admin()” condition to this function?

    something like this

    public function clean_post_cache( $post_id ){
      if(!is_admin()) return;
      //...rest codes
    }
    • This topic was modified 3 years, 8 months ago by Guaven Labs.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug report related to cache-compat.php’ is closed to new replies.