WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP Super Cache] Cache not shown consisntantly

[Plugin: WP Super Cache] Cache not shown consisntantly

  • I made few test today with Firefox and Chrome browsers working at the same time.

    Pages opened in Firefox do not show as cached when opened in Chrome afterward, and vice versa.

    Furthermore it seems that Firefox delivers cached files from cache/ folder, file Chrome delivers files from cache/supercache folder (I inspected them manually)

    Both browsers show the cached files on reload but they are coming from different folders.

    Example flow:
    Page load in FF->cache file is created in cache/ and only FOLDER is created in cache/supercache

    On reload cached files is server from cache/, still only folder in cache/supercache

    Cached page ends with:
    <!– Dynamic Page Served (once) in 0.301 seconds –>
    <!– Cached page served by WP-Super-Cache –>

    After that I load the page in Chrome. Uncached page is showed. Cache file is created in cache/supercache folder.

    Next time page is loaded it is cached, ending with:
    <!– Dynamic Page Served (once) in 0.406 seconds –>
    <!– super cache –>

    Test performed on two sites with no other plugins turned on. Strangely on your site it seems to work fine.

    Any clues?

Viewing 7 replies - 1 through 7 (of 7 total)
  • I don’t really, as I can’t run Chrome.

    How did you inspect the supercache folders? What ftp client? Or is it through ssh?

    The same thing happens if I use IE instead. I discovered it all accidentally when I browsed the site in another browser and noticed that the pages were not cached although I opened them previously in Firefox.

    I inspected the site through SSH.

    Can you download http://svn.wp-plugins.org/wp-super-cache/trunk/wp-cache.php, copy it into your wp-super-cache folder and then visit the wp-super-cache admin page. Does it show an error message?

    Tried that, no error is shown.

    Still the files n Firefox end with
    <!– Cached page served by WP-Super-Cache –>

    and in IE/Chrome with
    <!– super cache –>

    You can try live on prelovac.com

    Moderator Samuel Wood (Otto)

    @otto42

    Does the Firefox browser have any cookies? Like, say, you logged into the site, or have left a comment on the site?

    The super-cache only shows up to truly anonymous users. As in, no site cookies at all.

    Good one Otto, that was it – i was logged in in FF. When I cleared the cookies I started getting ‘super cache’ pages.

    I wonder why is this functionality separated? And why when looking at donncha’s site I get <!– Cached page served by WP-Super-Cache –> pages and not <!– super cache –> ones?

    Moderator Samuel Wood (Otto)

    @otto42

    I wonder why is this functionality separated?

    Because logged in users usually get different pages than anon users.

    Like, when I’m logged in on my site, I see “Edit” links below the posts. I don’t want normal readers seeing those.

    Also, on most comment forms, the name/email/website fields don’t show up for logged in users. It knows who you are.

    Similarly, if somebody has left a comment before, then they have a cookie with those fields. My comment form will notice that and fill in their fields for them.

    The only case where a user gets the supercached page is where there is no customization of the page going on. For everybody else, it falls back to the normal wp-cache page.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP Super Cache] Cache not shown consisntantly’ is closed to new replies.
Skip to toolbar