Title: Exclusions
Last modified: September 23, 2020

---

# Exclusions

 *  Resolved [dciphered](https://wordpress.org/support/users/dciphered/)
 * (@dciphered)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/exclusions-11/)
 * Hi Till,
 * I know this topic’s been raised a few times however I don’t think it’s ever been
   answered properly.
 * To get to the point, the LSCache plugin supports object cache control (including
   Redis of course) and one of their single-click options is to EXCLUDE wp-admin
   object caching.
 * How does one achieve the same with your plugin? There’s a solid use-case for 
   not wanting to cache wp-admin related queries and only reserve caching for front-
   end activity. Does your plugin support the ability to simply exclude backend (
   wp-admin) generated queries?
 * Many thanks in advance as I know this will help many others out there.
 * Looking forward to your reply.
    -  This topic was modified 5 years, 6 months ago by [dciphered](https://wordpress.org/support/users/dciphered/).

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

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/exclusions-11/#post-13444786)
 * Object caching cannot be disabled for specific paths, such as `/wp-admin`.
 * Adding `/wp-admin` to **Excludes** in Litespeed does not have any effect whatsoever.
 * I’d recommend for you to learning about the difference of “page caching” and “
   object caching”.
 *  Thread Starter [dciphered](https://wordpress.org/support/users/dciphered/)
 * (@dciphered)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/exclusions-11/#post-13446306)
 * Hi Till,
 * Thanks for your reply.
 * So, instead of making comments about learning the differences between page and
   object caching (both of which I understand very well) I’d recommend that you 
   take a closer look at Lscache’s implementation of their Object cache settings
   within their own plugin.
 * Here’s a link, within you will find both information and a screenshot that has
   a specific setting to enable/disable object caching of the wp-admin area. It 
   makes clear reference that by enabling object caching on wp-admin, you run the
   risk of serving expired data. Their plugin works brilliantly for object caching
   however is cumbersome for our requirements.
 * [https://blog.litespeedtech.com/2018/02/07/object-cache-support-in-lscache/](https://blog.litespeedtech.com/2018/02/07/object-cache-support-in-lscache/)
 * Again, I ask, does your plugin have a similar capability?
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/exclusions-11/#post-13446327)
 * It does not and it won’t, because it’s a bad idea.
 *  [SamTyurenkov](https://wordpress.org/support/users/samtyurenkov/)
 * (@samtyurenkov)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/exclusions-11/#post-13467855)
 * May I add my 5 cents into this topic. I also read many other similar topics and
   it would be great if you could post an example usage of filter. Not really clear
   what to pass.
 * I tried doing it this way, but it didn’t seem to work:
    `add_filter('redis_object_cache_get_value',
   $value,'pageviews',$group,true,$found);` or should I do it this way: `add_filter('
   redis_object_cache_get_value',null,'pageviews',null,true,null);`
 * You suggest requesting developer’s help in other topic, but really if it’s just
   a matter of proper writing of this single line of code, it would be great to 
   see an example usage.
 * Thanks.
    -  This reply was modified 5 years, 6 months ago by [SamTyurenkov](https://wordpress.org/support/users/samtyurenkov/).

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

The topic ‘Exclusions’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [SamTyurenkov](https://wordpress.org/support/users/samtyurenkov/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/exclusions-11/#post-13467855)
 * Status: resolved