Answer the question
In order to leave comments, you need to log in
How to force WP Super Cache to re-cache a page programmatically?
Hello
, tell me how you can programmatically tell the plugin (WP Super Cache) to re-cache a specific page?
Actually the problem is this. For products, managers uploaded images with different height/width ratios. and all the pictures dance on the pages of the archives. I wrote a plugin that, for each product whose image needs to be corrected, displays the corresponding. button. The manager will click on it and the plugin will adjust the size to the desired one, reconnect the new image to the product and ajax load the new image.
The only problem is that when the page is refreshed, the cached version is loaded.
versions - wordpress 4.6.1, woocommerce 2.6.11 Thanks
in advance
Answer the question
In order to leave comments, you need to log in
if (function_exists('wp_cache_post_change')) {
wp_cache_post_change($postID);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question