How to add support for caching plugins for my own plugin?
Is there a generic way to support caching plugins? For example to set a flag after you update an option that caching plugins watch?
For example WP Super Cache has this:
function wp_cache_clear_cache() {
global $cache_path;
prune_super_cache( $cache_path . 'supercache/', true );
prune_super_cache( $cache_path, true );
}
But I will have to add custom code for each caching plugin out there. Is there a better way to do it?
My plugin has some options and prints a shortcode based on those options. Pretty standard stuff.
Topic plugin-wp-supercache plugin-w3-total-cache cache plugin-development plugins Wordpress
Category Web