• Resolved cliqueradar

    (@cliqueradar)


    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. Reason: Fat fingers
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    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

    Thread Starter cliqueradar

    (@cliqueradar)

    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

    (@tillkruess)

    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.