• Resolved eddr

    (@eddr)


    Hi

    I cache specific page with query string parameters. How can it be purged?
    I doesn’t seem that purging the page by id or by url (with or without parameters) works

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    You can use the following code for this:

    if (function_exists('w3tc_flush_post')){
        w3tc_flush_post($post_id);
    }
    Thread Starter eddr

    (@eddr)

    Thanks, I’m aware of this, but it doesn’t work when there page is cached by its GET parameters

    Do you see what I mean?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    Yes, for this you can use:
    w3tc_flush_url( $url );

    Thread Starter eddr

    (@eddr)

    Thanks Marko but it simply doesn’t work

    Was digging a bit in the W3TC code and printed the keys that are used to delete the page cache, located in “PgCache_Flush.php” via this line
    “$page_keys = apply_filters( ‘w3tc_pagecache_flush_url_keys’, $page_keys );”

    The keys are the same no matter what query string I add to the w3tc_flush_url command. It doesn’t seem to take them into account.

    Please advise!

    Thread Starter eddr

    (@eddr)

    Marko, please advise.. it doesn’t work

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,
    Can you please share which cache engine you are using?

    Thread Starter eddr

    (@eddr)

    redis

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘purge url cache with query string parameters’ is closed to new replies.