WordPress.org

Ready to get started?Download WordPress

Forums

Quick Cache (Speed Without Compromise)
A function to clear a single page from cache with another plugin (1 post)

  1. Jakob Lenfers
    Member
    Posted 1 year ago #

    Hi,

    someone asked me if I could add support for your cache plugin in my reaction-buttons plugin. I would need a function that my plugin could call that deletes a single page from cache. (Every time a user clicks on a counter the cache should be cleared so the next visitor sees the correct counter.)

    All I found in clearing-routines.inc.php were functions that seem to need admin-access. The plugin is called from user actions on the frontend, therefore there is no admin access. Is there another way to clean the cache?

    I did the same for W3 Total Cache like this:

    if (function_exists('w3tc_pgcache_flush_post')) {
    	w3tc_pgcache_flush_post($post_id);
    }

    As far as I understand define("QUICK_CACHE_ALLOWED", false) wouldn't help as well, since I don't care about this page load, but all the following ones.

    TIA,
    Jakob

    http://wordpress.org/extend/plugins/quick-cache/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic