Right now with WP Super Cache, when an admin updates a post, the cache is cleared and new cached version is generated. How do I let users do the same with own posts? (When they update their posts the cache gets cleared).
1
-
1What should I do when someone answers my question? – Pieter Goosen Feb 8 '16 at 4:32
Add a comment
|
Last time I used this plugin, you had to flush the entire cache to do this:
add_action('save_post','custom_clear_wp_super_cache');
function custom_clear_wp_super_cache($post_id) {
if (function_exists('wp_cache_clear_cache')) {wp_cache_clear_cache();}
}
There may (or may not) be a method of flushing the cache for a particular post now.