Cache Api
-
Hi Guys!
I’m Dario, the plugin developer of Yasr – Yet Another Stars Rating
I would like to make my plugin work with W3 Total Cache, but I’m having some troubles.
In my plugin, when an user rate a post or page, I added an hook; here, I’m trying to delete the cache, using this code
function yasr_w3_total_cache($post_id) { if (function_exists('w3tc_pgcache_flush')) { w3tc_pgcache_flush(); }elseif (function_exists( 'wp_cache_clear_cache' ) ) { wp_cache_clear_cache(); } }But doesn’t seems to work: what am I doing wrong?
Do you have a link to the API? I couldn’t find it.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Cache Api’ is closed to new replies.