• I’m curious how cache rebuild actually works. The text says:

    Cache rebuild. Serve a supercache file to anonymous users while a new file is being generated. (Recommended)

    So my understanding is that if a user visits a page, they will be served a cached copy of the page. And in the background, the plugin is creating a new copy of the page. Correct? Then if I’m logged out, and refresh the page in intervals of 10 seconds, shouldn’t the time stamp of the cached page also update with each refresh? Right now the timestamp stays static. This is what supercache is saying about the page:

    <!– Dynamic page generated in 0.522 seconds. –>
    <!– Cached page generated by WP-Super-Cache on 2011-10-15 00:38:21 –>
    <!– Compression = gzip –>

    That 00:38:21 remains constant and doesn’t seem to ever update. It’s not just an issue with the timestamp; I’m using it as a record of what page the plugin is serving me. I have some additional scripts in the wordpress template theme page to bring in content from another section of the site. However, if I update the content, and then view the page as an anonymous user, I don’t ever see the new content.

    Please let me know, this is driving me crazy.

    http://wordpress.org/extend/plugins/wp-super-cache/

Viewing 1 replies (of 1 total)
  • No, it’s the thundering herd problem. If a page gets 10,000 hits every second and someone leaves a comment normally the cached page is deleted and suddenly those 10,000 visitors are all generating a new page (presuming it takes over 1 second to generate a page) causing a huge strain on your server.

    With this option turned on the system serves the slightly out of date cached page (with the missing comment in this example) to any visitors while the new cached page is being regenerated. When the new page is generated it replaces the old one in one single atomic step.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP Super Cache] How does cache rebuild exactly work?’ is closed to new replies.