WordPress.org

Support

Support » Plugins and Hacks » WP Super Cache » [Plugin: WP Super Cache] Preloaded pages not created until user visits

[Plugin: WP Super Cache] Preloaded pages not created until user visits

  • Hey, looking for some help and possibly clarification. My understanding is that preload mode will generate cached pages ahead of time so the pages don’t have to be generated when the user visits the page. What currently is happening is that when i click “Preload Cache Now” the pages are generated and then deleted. At the end of the process i end up with only the homepage’s index.html and index.html.gz.

    I’m able to tell this because i’m monitoring the contents of the supercache directory while the preloading process is happening. The pages are only created, and not deleted, when an anonymous user visits them.

    My question is: Is this what’s supposed to be happening? If not why is Super Cache deleting the cached pages right after they’re created?

    Thanks in advance!

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

Viewing 15 replies - 1 through 15 (of 40 total)
  • Plugin Author Donncha O Caoimh

    @donncha

    No, that’s not supposed to happen. Can you use the debug system in the plugin? That will tell you what’s happening.

    Hey,
    Thanks for the quick response. I did use the debug tool beforehand to see if i could identify the problem. Unfortunately i didn’t see anything alarming. Below is a link to the debug file.

    http://preview.glg.com/wpsupercache-debug.txt

    Thanks

    Plugin Author Donncha O Caoimh

    @donncha

    I noticed that our-companies page was cached and then promptly deleted by the cron job. Make sure you have “preload mode” switched on and check the garbage collection settings in the advanced settings page.

    Yeah that’s what i’m baffled about. I’m not understanding why the garbage collection runs every time these files are created. Here’s links to images of my advanced and preload settings. Also, i believe there was an update to the Super Cache plugin recently (i’m thinking in the past couple days), and i don’t remember this issue ever occurring before. Not sure if it’s relevant but i thought i would mention it. Is there a link to the previous build so i could test with that version?

    http://preview.glg.com/advanced.png
    http://preview.glg.com/preload.png

    Plugin Author Donncha O Caoimh

    @donncha

    Yeah, check this this link for previous versions.

    So reverting to the previous version fixed the issue. I also reinstalled the newest version and used the default settings and tried again just to see if my settings were whack and the problem still persisted. There must be some garbage collection bug in the newest version.

    Thanks for you help

    Obviously, I’m not the only one having this issue. Weird.

    Plugin Author Donncha O Caoimh

    @donncha

    bradenmikael, cole20444 – have you tried the development version? You can download it on this page and I think preload should work with that version.

    Development version yields same results. No dice.

    On a side note, now the development version shows nothing but a white screen when you go to the super cache settings panel. Grrrr …

    Plugin Author Donncha O Caoimh

    @donncha

    Check your PHP error log. Anything there? uncomment the error_reporting() line at the top of wp-cache-phase1.php and reload the page – it may show something then.

    Plugin Author Donncha O Caoimh

    @donncha

    I’ve added a lot of debugging to the preload process and run it several times without a hitch.

    Can you download the development version again (if you’re brave enough) and enable debugging? You can probably limit the debugging to the IP of your server (ping your own hostname to find it) then preload the smallest number of posts you can so the garbage collection runs at the end.

    Hi Donncha, I have the same problem with preloading the cache. I’m quite sure it worked fine in the past, but probably after updating to wordpress 3.3 or updating the wp cache plugin problems started. I did not change any settings.

    After I press “preload cache” the cache is preloaded; when I click on the link “Regenerate cache stats” I can see that the number of cached files is increasing. But when the preloading process is finished and all files should be cached, it seems that all files are being deleted.

    The following code is an excerpt from the debugging file:

    13:48:36 /gold-blog/ Sending buffer to browser
    13:48:36 /gold-blog/ wp_cache_shutdown_callback: collecting meta data.
    13:48:37 /wp-cron.php?doing_wp_cron=1325771251 supercache dir: /[…]/wp-content/cache/supercache/www.trustablegold.com/
    […]
    13:48:37 /wp-cron.php?doing_wp_cron=1325771251 gc: deleted /[…]/wp-content/cache/supercache/www.trustablegold.com/2012/gold-2012

    Obviously, after building up the cache, every single file in the cache is being deleted via a cron job??

    Any idea? Thanks in advance.

    p.s.: Garbage collection is disabled:

    In “Expiry Time & Garbage Collection” Cache Timeout is set to 0 seconds.

    Plugin Author Donncha O Caoimh

    @donncha

    Try the development version linked above!

Viewing 15 replies - 1 through 15 (of 40 total)
  • The topic ‘[Plugin: WP Super Cache] Preloaded pages not created until user visits’ is closed to new replies.
Skip to toolbar