Title: Excluding certain plugin
Last modified: September 30, 2021

---

# Excluding certain plugin

 *  Resolved [danniee](https://wordpress.org/support/users/danniee/)
 * (@danniee)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/)
 * Hi,
 * First of all, thank you for a fantastic plugin and for your generous support.
 * I have a custom made plugin on my front page that displays review scores. It 
   doesn’t get updated since I installed Redis whenever a new score is added. Is
   there a way from excluding this plugin from being cached by Redis?
 * I tried doing some research and it seems like it should be possible. I’m not 
   very good at this so I did not quite understand where to add the string, etc.
   Maybe someone can point me in the right direction?
 * Many thanks.

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14926483)
 * Hi [@danniee](https://wordpress.org/support/users/danniee/)!
 * That depends on how your custom plugin caches things. You can ignore cache group
   using the `WP_REDIS_IGNORED_GROUPS` constant. Maybe post the code that does the
   caching 👍
 *  Thread Starter [danniee](https://wordpress.org/support/users/danniee/)
 * (@danniee)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14926700)
 * Thank you. Sounds like I will need to hire a programmer for this since the plugin
   was custom built and I don’t know much about coding :/
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14929159)
 * Yeah, unless you’re somewhat technical it would be best to talk to a developer
   about this.
 *  Thread Starter [danniee](https://wordpress.org/support/users/danniee/)
 * (@danniee)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14932458)
 * Hi, still haven’t found someone able to help me with this, so it’s a bit of a
   problem for me. Would it at least be possible to add a “flush cache” option in
   the admin bar so people don’t have to go to the backend and find Redis every 
   time they need to do that? Thank you.
 *  Thread Starter [danniee](https://wordpress.org/support/users/danniee/)
 * (@danniee)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14940552)
 * No one seem to be able to help me with this. They just tell me to ask the plugin
   author.
 * I tried adding this to wp-config:
 * define( ‘WP_REDIS_IGNORED_GROUPS’,array ( ‘mts_recent_reviews’, ‘wp-review’, ‘
   wp_review_total’) );
 * or
 * define( ‘WP_REDIS_IGNORED_GROUPS’, ‘mts_recent_reviews’, ‘wp-review’, ‘wp_review_total’);
 * But the cached content is still not being updated.
    -  This reply was modified 4 years, 7 months ago by [danniee](https://wordpress.org/support/users/danniee/).
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14940567)
 * Hi [@danniee](https://wordpress.org/support/users/danniee/)
 * The first one is correct:
 *     ```
       define( 'WP_REDIS_IGNORED_GROUPS', array(
         'mts_recent_reviews',
         'wp-review',
         'wp_review_total',
       ) );
       ```
   
 * I don’t know which cache groups you are trying to ignore, but the individual 
   plugin authors will be able to provide you with them.
 *  Thread Starter [danniee](https://wordpress.org/support/users/danniee/)
 * (@danniee)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14940651)
 * Hi [@tillkruess](https://wordpress.org/support/users/tillkruess/)
 * Thank you for helping me. I tried adding it like that but it makes no difference,
   so I assume I am missing the correct groups to exclude. I will ask the plugin
   author. Thank you again 🙂
 *  Thread Starter [danniee](https://wordpress.org/support/users/danniee/)
 * (@danniee)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14943093)
 * No one seems to be able to help me solve this, not even the devs I’ve asked seem
   interested. I guess it’s too small of a job for them.
 * I tried excluding “transients” and that works, but I suspect that is far too 
   wide of a group to exclude to make Redis compatible with the review plugin :/
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14944364)
 * > I tried excluding “transients” and that works, but I suspect that is far too
   > wide of a group to exclude to make Redis compatible with the review plugin :/
 * You’re assumption is correct. Ideally you reach out the the individual plugin
   authors and ask them to fix their plugins when using _persistent object caching_.
 *  Thread Starter [danniee](https://wordpress.org/support/users/danniee/)
 * (@danniee)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14946797)
 * Hi, I fixed it for this plugin. Just wanted everyone to know if they are reading
   this. In the plugin I changed:
 * protected $no_cache = false;
 * to
 * protected $no_cache = true;
 * 🙂
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14948899)
 * Hi [@danniee](https://wordpress.org/support/users/danniee/)! That code **does
   not** belong to this plugin.
 * [https://github.com/rhubarbgroup/redis-cache/search?q=no_cache](https://github.com/rhubarbgroup/redis-cache/search?q=no_cache)
 *  Thread Starter [danniee](https://wordpress.org/support/users/danniee/)
 * (@danniee)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14949136)
 * Hi,
 * I’m not sure what you mean? I edited my review plugin so it does not get cached
   by Redis 🙂
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-14959647)
 * Ah, thanks for the explanation.
 *  [levycarneiro](https://wordpress.org/support/users/levycarneiro/)
 * (@levycarneiro)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-15192623)
 * In which file should one place the exclusion rules mentioned above? wp-config.
   php? Thanks.
 *  [Nick](https://wordpress.org/support/users/nickchomey/)
 * (@nickchomey)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-15458315)
 * FYI, I’ve updated this github issue with a workaround/snippet for adding a button
   to the admin bar for clearing the Object Cache
 * [https://github.com/rhubarbgroup/redis-cache/issues/224](https://github.com/rhubarbgroup/redis-cache/issues/224)

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Excluding certain plugin’ is closed to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 15 replies
 * 4 participants
 * Last reply from: [Nick](https://wordpress.org/support/users/nickchomey/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/excluding-certain-plugin/#post-15458315)
 * Status: resolved