WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Flush page cache by URL: What format? absolute, relative, trailing slash...? (4 posts)

  1. rsm08
    Member
    Posted 1 year ago #

    Hi

    I've been desperately Googling for the answer to this, but I can't find a single mention anywhere.

    The function pgcache_flush_url() takes a url as the argument. But in what format?

    E.g.

    "http://www.mysite.com/cars/doors/?sort=desc"
    "http://www.mysite.com/cars/doors/"
    "http://www.mysite.com/cars/doors"
    "www.mysite.com/cars/doors/"
    "/cars/doors/"

    etc, etc.

    I assume this is very important, bc if the url key is wrong, nothing is going to be cleared.

    Also, is there a way to flush cache by part of the path, sort of like this:
    "http://www.mysite.com/cars/*"
    meaning that every URI starting with this should get purged?

    Thank you for an awesome plugin!

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. jarednova
    Member
    Posted 9 months ago #

    I've tried every combo I can think of, but no luck. @fredericktownes, help!!!!!

  3. jarednova
    Member
    Posted 9 months ago #

    ... by the way I'm using:

    w3tc_pgcache_flush_url('blog');
    w3tc_pgcache_flush_url('/blog/');
    w3tc_pgcache_flush_url('/blog');
    w3tc_pgcache_flush_url('http://localhost/blog');
    w3tc_pgcache_flush_url('http://localhost/blog/');

    ... but none give me back anything

  4. Frederick Townes
    Member
    Plugin Author

    Posted 9 months ago #

    Is the URL fully qualified?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic