Exclude certain queries? | WordPress.org

[ad_1]

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 20 hours, 39 minutes ago by cliqueradar. Reason: Fat fingers

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer