WordPress caching issue
Problem solved. Had two pages with the same content, and slightly different names, and I was updating the other one.
Problem solved. Had two pages with the same content, and slightly different names, and I was updating the other one.
Not clear about what exactly is wrong but few comments about things you are doing wrongish transients cache values up to a time so your random game can actually be totally pointless especially if a url is not being frequently fetched, since you use redis the value might expire as part of the memory cleanup … Read more
This depends on what is it that you are trying to do/use. In theory the protocol used to communicate with memcached server is not very complex and can be implemented in PHP, and therefor as a plugin. In practice you might want to prevent collisions of multiple processes writing at the same time to the … Read more
In Settings > WP Super Cache disable Advanced > Clear all cache files when a post or page is published or updated. There is nothing wrong with using static page cache for larger site as long as it fits your requirements. If you need dynamic features or extreme performance, then it would be time to … Read more
Yes, making static version of WP blog is definite possibility. I would advise against using caching plugins for that — it’s not their purpose and a lot of their functionality tends to depend on elaborate rewrite rules, which you won’t be able to replicate on CDN. There are dedicated WP solutions (none that I have … Read more
Yes it seems that the post_password_expires filter is what you are looking for. According to the documentation you just need to add function wpse166590_cockie_timeout($timeout) { return time() + 5 * 60; // 5 minute in seconds } add_filter(‘post_password_expires’,’wpse166590_cockie_timeout’);
You could simply use fetch_feed() that implements it’s own extension of SimplePie_Cache: $feed = new SimplePie(); … $feed->set_cache_class( ‘WP_Feed_Cache’ ); … $feed->set_feed_url( $url ); … $feed->set_cache_duration( apply_filters( ‘wp_feed_cache_transient_lifetime’, 12 * HOUR_IN_SECONDS, $url ) ); that caches the feeds with set_transient().
Install a page caching plugin and configure it for a very very long time. This have the advantage of you being able to post things when you decide that its time to do that again. Side note: abandoned blog creates actual noticeable load on a DB server? I find it hard to believe. front end … Read more
You call it asynchronously via the REST API. In a best case scenario, you want the entire HTML of a page cached (full page cache). Executing PHP inside that is not easily possible and that’s exactly the idea behind it So what you want is some JavaScript that talks to the REST API. The JavaScript … Read more
Transients API documentation formulates suggested usage as: long/expensive database queries or complex processed data Your case seems like a perfect fit for this description. On technical side you will need to concatenate your output into variable and put into transient, instead of displaying it.