WordPress.org

Ready to get started?Download WordPress

Forums

Participants Database
Clearing W3 Total Cache with a new participant? (7 posts)

  1. eatingrules
    Member
    Posted 1 year ago #

    I'm using Participants Database as a "pledge" page on my site, and I'm including both the sign-up form and the list of participants on the same page:

    http://www.eatingrules.com/october-unprocessed-2012/

    I'm also using W3 Total Cache, with Page Caching enabled, to help speed up my site. The issue is that the page cache isn't being cleared/updated whenever a new person is added to the list.

    I've temporarily disabled page caching on that one page of my site, but that's less than ideal -- especially since I'm anticipating a lot of traffic on this specific page over the next few weeks.

    Is there any way to have Participants Database clear this page out of the W3 Total Cache when someone new signs up?

    Thanks!

    http://wordpress.org/extend/plugins/participants-database/

  2. xnau
    Member
    Plugin Author

    Posted 1 year ago #

    This is an interesting question...check this discussion on Stack Exchange for a possible solution you can insert in your template.

  3. Frederick Townes
    Member
    Posted 1 year ago #

    Thanks @xnau, @eatingrules, is that what you were looking for?

  4. eatingrules
    Member
    Posted 1 year ago #

    Hi xnau and Frederick -- thanks for the replies, and sorry for taking a bit to check back in. I'm getting married in a week, so I'm a bit scattered at the moment!

    I looked at the FAQ for the fragment caching, but I'm not sure how I'd implement it in this case -- since I want not to cache the list, but DO want to cache everything else. OR, it seems to me the better solution is to clear the cache of that particular page every time someone fills out the form (which is also on that page).

    Hmm... Could I just do something like this in the post body? (Using the participants list shortcode instead of PHP code):

    <!-- mfunc -->[pdb_list]<!-- /mfunc -->

    Thanks so much,
    Andrew

  5. Frederick Townes
    Member
    Posted 1 year ago #

    I don't think a shortcode call would work in this case, it has to be PHP.

  6. eatingrules
    Member
    Posted 1 year ago #

    Yep, it seems like this should really be something that's in the Participants Database plugin... ideally, it would detect if W3TC is installed, and if so, would flush the cache for that page (or any page that has the shortcode to list the participants) anytime someone submits a new entry to the list.

    I'm short on time, so I'm just going to keep excluding that page from the cache. Not ideal, but it'll have to do.

    Thanks, Frederick!

  7. Frederick Townes
    Member
    Posted 1 year ago #

    Ok.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic