Support » Plugin: Redis Object Cache » WP_REDIS_IGNORED_GROUPS needs explanation

  • Resolved mostafahussein

    (@mostafahussein)


    I would like to know more about WP_REDIS_IGNORED_GROUPS as i cannot find anywhere. All I understand that you are figuring it out from the source code itself.

    In my case i have a php file which contains Ads code and I want to exclude it from redis cache, should i add it to a group using php code then add this group to ignored groups from redis ? if the answer is yes, how can i add the file to a group ?

    Note that the file is under an active theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    You can’t exclude a file from the WordPress object cache, only a cache group.

    Are you certain that “ads code” is actually using the object cache?

    Thread Starter mostafahussein

    (@mostafahussein)

    Yes, there are SQL queries inside that file that needs to be excluded. I thought if I can add this file to a cache group I will be able to exclude it, But I don’t know how to achieve that

    It there a way to ensure that the file is using the object cache ? in order to know if its cached or not ?

    Plugin Author Till Krüss

    (@tillkruess)

    Does the file contains any wp_cache_* function calls?

    Thread Starter mostafahussein

    (@mostafahussein)

    I coudn’t find any wp_cache_* calls inside that file. I am not sure if this would be helpful: file located under /home/<username>/www/wp-content/themes/<theme_name>/inc/ads-share.php.

    My client said that enabling redis causing a drop in his revenue and we need to disable redis cache or exclude that file.

    Plugin Author Till Krüss

    (@tillkruess)

    If the file doesn’t contain wp_cache* function calls, it’s not using WordPress’ object cache.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP_REDIS_IGNORED_GROUPS needs explanation’ is closed to new replies.