WordPress.org

Support

Support » Plugins and Hacks » WP Super Cache » [Plugin: WP Super Cache] Preload doesn't work, not sure if it's a Cron or PHP issue

[Plugin: WP Super Cache] Preload doesn't work, not sure if it's a Cron or PHP issue

  • Hello,

    I’m on WP 3.03 and PreLoad doesn’t work for me and I’m using WPSC 0.9.9.7. I didn’t find anything obviously wrong with the Cron, posts can be scheduled, and I only found a few PHP warnings. Here are the dumps. Let me know if you have a suggestion to make this work. I have about 20,000 pages that I would like to pre-load. (Thx!)

    WPSC debug log
    ==================
    02:36:55 /wp-cron.php?doing_wp_cron Cleaning expired cache files in /xxx/<domain>.com/httpdocs/wp-content/cache/
    02:36:55 /wp-cron.php?doing_wp_cron Doing GC on supercache dir: /xxx/<domain>.com/httpdocs/wp-content/cache/supercache
    02:36:55 /wp-cron.php?doing_wp_cron gc: deleted /xxx/<domain>.com/httpdocs/wp-content/cache/supercache/<domain>.com/2009/02/<page-slug>
    02:36:55 /wp-cron.php?doing_wp_cron gc: deleted /xxx/<domain>.com/httpdocs/wp-content/cache/supercache/<domain>.com/2009/02/<page-slug>
    02:36:55 /wp-cron.php?doing_wp_cron gc: deleted /xxx/<domain>.com/httpdocs/wp-content/cache/supercache/<domain>.com/2009/04/<page-slug>
    02:36:55 /wp-cron.php?doing_wp_cron gc: deleted /xxx/<domain>.com/httpdocs/wp-content/cache/supercache/<domain>.com/2009/03/<page-slug>
    02:36:55 /wp-cron.php?doing_wp_cron gc: deleted /xxx/<domain>.com/httpdocs/wp-content/cache/supercache/<domain>.com/2006/12/<page-slug>
    02:36:55 /wp-cron.php?doing_wp_cron gc: deleted /xxx/<domain>.com/httpdocs/wp-content/cache/supercache/<domain>.com/2006/12/<page-slug>
    02:36:55 /wp-cron.php?doing_wp_cron gc: deleted /xxx/<domain>.com/httpdocs/wp-content/cache/supercache/<domain>.com/2010/12/<page-slug>
    02:36:55 /wp-cron.php?doing_wp_cron gc: deleted /xxx/<domain>.com/httpdocs/wp-content/cache/supercache/<domain>.com/2010/12/<page-slug>
    02:36:55 /wp-cron.php?doing_wp_cron gc: deleted /xxx/<domain>.com/httpdocs/wp-content/cache/supercache/<domain>.com/2010/11/<page-slug>
    02:36:55 /wp-cron.php?doing_wp_cron gc: deleted /xxx/<domain>.com/httpdocs/wp-content/cache/supercache/<domain>.com/2010/11/<page-slug>
    02:36:55 /wp-cron.php?doing_wp_cron gc: deleted /xxx/<domain>.com/httpdocs/wp-content/cache/supercache/<domain>.com/2010/11/<page-slug>
    02:36:55 /wp-cron.php?doing_wp_cron gc: deleted /xxx/<domain>.com/httpdocs/wp-content/cache/supercache/<domain>.com/2008/12
    02:37:01 /wp-admin/post.php Clearing cache for post 12040 on post edit.

    Server Error log
    ===============
    [warn] mod_fcgid: stderr: PHP Warning: file(/xxx/<domain>.com/httpdocs/wp-content/wp-cache-config.php) [function.file]: failed to open stream: No such file or directory in /xxx/uberphones.com/httpdocs/wp-content/plugins/wp-super-cache/wp-cache.php on line 1621
    [warn] mod_fcgid: stderr: PHP Warning: Invalid argument supplied for foreach() in /xxx/<domain>.com/httpdocs/wp-content/plugins/wp-super-cache/wp-cache.php on line 1622
    [warn] mod_fcgid: stderr: PHP Warning: Invalid argument supplied for foreach() in /xxx/<domain>.com/httpdocs/wp-content/plugins/wp-super-cache/wp-cache.php on line 1642

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

    @donncha

    Those server error log entries are harmless and are from when you installed the plugin and the config file hadn’t been created.

    I’m not sure why it’s not working for you. You could clear out the Excluded pages textarea on the advanced settings page. That will let search engine bots create cached files.

    Doncha, I’ll try that. I’ve setup the expiration date to 1-week, and I just leave the cache grow organically.

    By the way, I wanted to ask: because the pages are built with PHP, there’s no way to leave any PHP executable code in them, right? That’s why you save then as .html

    It would have been nice if the “baked” cached pages could still execute simple PHP code to do stuff like “include()” or display dates as “x hours ago”.

    Plugin Author Donncha O Caoimh

    @donncha

    Hubert – check the FAQ, you can embed PHP code. You should grab the development version and check the readme.txt as the next version will have better support for “dynamic pages” – I mention it on this post: http://ocaoimh.ie/uninstall-supercache/

    Doncha, thanks for the pointer. I’ll take a look. There are things like the most recent stories etc that I’d like to include() even if the page is baked. Also, being able to have some url variable that trigger PHP code can still be useful.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Super Cache] Preload doesn't work, not sure if it's a Cron or PHP issue’ is closed to new replies.
Skip to toolbar