Mr Papa
Member
Posted 4 months ago #
Is there a function or way to clear the cache based on uri?
tracking through the admin and how it selectively deletes cached files (the cache list) by uri, but seems to be inline code vs usable function...
have a plugin with our dynamic page structure on a single wp page. all cached fine, but need to be able to delete a cache entry on change (the wp page itself does not change)...
thoughts?
http://wordpress.org/extend/plugins/wp-super-cache/
Unfortunately you'll have to use the prune_super_cache() function and pass it the pass to the directory holding the cache files. Plenty of examples in wp-cache-phase2.php
Mr Papa
Member
Posted 4 months ago #
yeah, I have come to realize that. since we have a function similar to the wp post edit/create function, I have added a cache action and written a somewhat equivalent function to the one that deals with new or updated wp post...
thanks...