WordPress PHP 5.5 and OPcache
WordPress PHP 5.5 and OPcache
WordPress PHP 5.5 and OPcache
Transients are generally cleared when read. If you want to check for this common case, you could catch the pre_transient_transientname and see if it expired, the same way WP is doing: function get_transient( $transient ) { /** * Filter the value of an existing transient. * * The dynamic portion of the hook name, `$transient`, … Read more
How to decode wordpress transient cache stored in database?
Disable caching plugins Purge cache from browser Have you altered caching yourself in any way? If youre using any CDN like Cloudflare, enable dev mode and purge cache from their side Refresh page with shift + F5 which ignores cache If you’re making changes in CSS or JS for example, make sure to take a … Read more
Transients can be used but you’d need to make sure they don’t expire earlier than you want. I answered a similar question with a different goal here, but I’ve tried to keep the slightly different answer below self-contained. Option 1 – PHP Sessions I’ve been storing carts within a PHP session which is fine generally … Read more
WP_Object_Cache for heavy WP_Query
How to cache a different page version based on HTTP header?
How do I enable dynamic content in a theme cached with WP Super Cache?
I know the question is over a year old, and you probably already found a solution. In case this helps someone, here is a solution I came up with that adds a feed on an init hook, removes it when the plugin is deactivated, and also adds it back when the plugin is re-activated. The … Read more
WP Rocket Cache Lifespan – Never clear cache? [closed]