WordPress.org

Ready to get started?Download WordPress

Forums

Quick Cache (Speed Without Compromise)
[Plugin: Quick Cache ( Speed Without Compromise )] Clearing cache selectively (2 posts)

  1. ssj_costy
    Member
    Posted 1 year ago #

    Hi everyone,

    I have some posts displayed that can appear on more than one page. I've made an action on save_post and on delete_post so that I can get all those pages and clear the cache only for them.

    I'm calling the static function clear_on_post_page_creations_deletions ($id = FALSE) from the c_ws_plugin__qcache_clearing_routines class.

    The thing is I also have some predefined query strings set on some of these pages, and I've activated caching of query string GET requests in the quick cache admin options.

    The problem is that by calling that function, the cache for the page is cleared, but it's not cleared for the page with query strings as well - that one still remains cached.

    So how could I clear the cache for a page and all the versions of that page with the query strings.
    I must mention again, I have just a few query strings possible, so I can iterate through them.

    By the way, this is a great plugin, I've been using it for a while and it's been flawless :)

    Best regards,
    Costin

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

  2. Kimberly
    Member
    Posted 1 year ago #

    Because this plugin uses MD5 hashing to construct the filenames for caching i would imagine you would need to pass a variable to let the static function know if its the query string variation of the page so that it can build the proper md5 filename for it. That variable's contents should be the entire query string so qc can then append prior to hashing. At least that is what i would do.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic