• Can you stop Super Cache from caching the our forum….It causes a problem when they submit, causing what they type to just disappear, Thanks!
    Dominick

Viewing 4 replies - 1 through 4 (of 4 total)
  • See the developer docs linked from the plugin documentation. You can define a constant, “DONOTCACHEPAGE” on any pages that you don’t want cached.

    Hi,

    Sorry if this seems a silly question, but I am having the same issue.

    I have a plugin I wrote which swaps the css for an accessibility friendly version but the page reloads with the cached version of the site so the wrong css.

    It swaps the css with the code below:

    <?php if ($_COOKIE["style"] == "on" ) {
    	accessible style sheet
    	} else {
            normal style sheet
    } ?>

    I know i need to add an argument to say dont load cached content if this cookie is set, in this instance where do I define the constant? and how?

    Thanks for your help,

    Best,
    Matt

    Thread Starter dominick41

    (@dominick41)

    so do you have to do this each forum generates a new page

    wearebase – add a check for that cookie in the rewrite rules for supercache if you’re using mod_rewrite caching. You’ll also probably want to modify the cache_key in wp-cache-phase1.php. Have a look at that file and the developer docs linked from the main supercache page.

    dominick41 – just add it to your forum config file probably. Some file that’s loaded by every forum page. This is PHP code, not HTML of course.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Super Cache] How to stop sp cache fram cashing our forum page’ is closed to new replies.