Title: Exclude certain queries?
Last modified: July 7, 2023

---

# Exclude certain queries?

 *  Resolved [cliqueradar](https://wordpress.org/support/users/cliqueradar/)
 * (@cliqueradar)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/exclude-certain-queries/)
 * Hi,
 * I’m running an age verification plugin on a site, which does it’s job, but needed
   some extra functionality so I coded some extra functionality myself.
 * Principally, I wanted it to check the user’s age verification status when a woocommerce
   order changes status from pending to processing, and… if their age verification
   status was a ‘fail’ (this is set in usermeta), then the order would automatically
   be moved to a new custom ‘hold’ status.
   All worked exactly as it should for a
   day, then without any changes, that function just stopped working.Is it possible
   Redis is caching the query for the users age verification status and somehow 
   preventing that order status change from taking place?Oh and, I’m running the
   free version of Redis Object Cache.
 * Many thanks. 🙂
    -  This topic was modified 2 years, 9 months ago by [cliqueradar](https://wordpress.org/support/users/cliqueradar/).
      Reason: Fat fingers

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

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/exclude-certain-queries/#post-16880091)
 * Redis Object Cache does not cache queries, or is aware of the concept of queries.
   You can only ignore _object cache groups_.
 * [https://github.com/rhubarbgroup/redis-cache/blob/develop/FAQ.md](https://github.com/rhubarbgroup/redis-cache/blob/develop/FAQ.md)
 *  Thread Starter [cliqueradar](https://wordpress.org/support/users/cliqueradar/)
 * (@cliqueradar)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/exclude-certain-queries/#post-16880168)
 * Thanks for the reply, Till.
 * I had already started down a different approach to get my code to do what I needed,
   will see if that works before harassing my hosting support for help with that.
   
   Yeah… I broke your first rule on your support forum… I don’t know enough about
   Redis Caching to have a discussion about this that wouldn’t involve you breaking
   out the crayons and drawing me pictures. 🙂Sounds like I’d have to exclude usermeta,
   which is such a large chunk of this site to exclude from caching just for this
   one operation.So, hopefully my alternative solution will work.Thanks for link…
   I’ll read it through anyway, try and gain a bit of an understanding of Redis 
   Caching.Del.
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/exclude-certain-queries/#post-16881283)
 * Hit me up if you have any more questions!

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

The topic ‘Exclude certain queries?’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/exclude-certain-queries/#post-16881283)
 * Status: resolved