WP Super Cache
Clear cache by URI (3 posts)

  1. Mr Papa
    Posted 4 years 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)...



  2. Donncha O Caoimh
    Plugin Author

    Posted 4 years ago #

    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

  3. Mr Papa
    Posted 4 years 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...


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic