WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Clear cache by URI (3 posts)

  1. Mr Papa
    Member
    Posted 2 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)...

    thoughts?

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 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
    Member
    Posted 2 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...

    thanks...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic