[Plugin: WP Super Cache] Pre Loading Problems
-
I have a site of RSS Feeds, a news aggregator site with the latest WP and WP Super Cache on Godaddy.
My expectation was that WP Super Cache would generate a static file for each of my pages – automatically and in the background, and then serve the cached file to anyone that visits those pages.
My experience is this: the static file would only generate when a user goes to that page, then afterwards it would serve that static file ok. So, the first visit to a page could wait 20-30 seconds to get the page.
i.e. the cache preloading would not work, even after that.
Godaddy suggested maybe forcing a cron job for one of the plugins above, but this should already be in WP-Cron.php right?
My questions are these:
1. Anyone out there with a similar experience?
2. Any suggestions on solving this problem? Settings Suggestions?
3. Any other suggestions appreciated?Thanks
Newsagg
-
Try using the development version of the plugin which has a number of preloading fixes.
Donncha, Thanks for a wonderful product.
I may have an unusual case as my site is entirely RSS feeds.
I downloaded the new plugin (Thu, 01 Mar 2012 11:53:37) and it did not work, I downloaded another newer version today (Wed, 07 Mar 2012 10:59:24) and it did not work either.
I have it on 4 sites, same problem – the sites are new, so no one is really visiting them – so it is good to test.
If I leave the site alone – PreLoading will not work.
As soon as I call up the site – I get the email that PreLoading has begun, but it does not preload the entire site – just some selected pages. For me to preload the entire site I have to visit each page.
———————————————————Emails I get if I call up the front page:
6:55pm – WP Super Cache GC Report
The WP Super Cache Garbage Collector has now run, deleting 0 files and directories.6:55pm WP Super Cache PreLoad Started
empty email7:06pm WP Super Cache GC Report
empty email———————————————————
If I ftp to the cache I see that only 1/2 of the pages preloaded.
———————————————————
Here is my config:
Theme Settings:
Time Period for an Item to be Marked as New – 24 hours
Feeds Cache Duration – 3600 secondsGeneral Settings:
Permalinks: Custom Structure – /%category%/%postname%/WP Super Cache Settings: all of these are checked
Easy
– Caching On
– Test Cache – all passesAdvanced
– Cache hits to this website for quick access
– Use PHP to serve cache files
– Cache rebuild. Serve a supercache file to anonymous users while a new file is being generated.
– Mobile device support. (External plugin or theme required. See the FAQ for further details.)
– List the newest cached pages on this page
– Cache Timeout 3600 seconds
– Scheduler Timer 600 seconds
– Notification Emails Email me when the garbage collection runsPre Load
Refresh preloaded cache files every 60 minutes– Preload mode
– Preload tags
– Send me status emails
– Less emailsDebug
Debugging enabled
Log level 5– Email the blog admin when checks are made
I can email you logon or ftp access. Thank you Donncha
Unfortunately I don’t have time to login or ftp, but use the debug system in the plugin to see what it’s doing when it’s preloading. That may give you a hint as to what is going wrong.
Ok, will do. I’ll log what I find here:
The first time I install the new development versions of WP Super Cache and activate it, it gives this error:
Fatal error: Call to undefined function get_supercache_dir() in /home/content/30/7992030/html/xyz/wp/wp-content/plugins/wp-super-cache/wp-cache.php on line 551
When I reload the page this error does not show up anymore.
also, any suggestions on settings?
I did turn on – Check front page every 5 minutes.
Thanks.
If I leave the site alone and no one visits it, the Pre Load does not initiate. And the check the front page every 5 minutes does not initiate. I put the debug on 5 and I get no emails.
The only time I start getting emails is if I visit the site.
But, it seems that if I visit the site it will only preload the pages I visit.
Here is the debug….
05:21:17 /wp/ supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/
05:21:17 /wp/ Served page from supercache file using PHP.
05:21:21 /wp/breaking/ supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/breaking/
05:21:21 /wp/breaking/ No wp-cache file exists. Must generate a new one.
05:21:22 /wp/breaking/ In WP Cache Phase 2
05:21:22 /wp/breaking/ Setting up WordPress actions
05:21:22 /wp/breaking/ Created output buffer
05:21:24 /wp/wp-cron.php?doing_wp_cron=1331270482 In WP Cache Phase 2
05:21:24 /wp/wp-cron.php?doing_wp_cron=1331270482 Setting up WordPress actions
05:21:24 /wp/wp-cron.php?doing_wp_cron=1331270482 Not caching POST request.
05:21:26 /wp/ supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/
05:21:26 /wp/ Served page from supercache file using PHP.
05:21:26 /wp/wp-cron.php?doing_wp_cron=1331270482 scheduled wp_cache_check_site_hook for 360 seconds time.
05:21:26 /wp/wp-cron.php?doing_wp_cron=1331270482 Cache garbage collection.
05:21:26 /wp/wp-cron.php?doing_wp_cron=1331270482 Cleaning expired cache files in /home/content/30/7992030/html/xyz/wp/wp-content/cache/
05:21:26 /wp/wp-cron.php?doing_wp_cron=1331270482 scheduled wp_cache_gc for 10 seconds time.
05:21:35 /wp/breaking/ Output buffer callback
05:21:35 /wp/breaking/ Anonymous user detected. Only creating Supercache file.
05:21:35 /wp/breaking/ Writing non-gzipped buffer to supercache file.
05:21:35 /wp/breaking/ Renamed temp supercache file to /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/breaking/index.html
05:21:35 /wp/breaking/ Sending buffer to browser
05:21:35 /wp/breaking/ wp_cache_shutdown_callback: collecting meta data.
05:21:35 /wp/breaking/ Did not write meta file: wp-cache-79bfcdb3486112cf9fa521fcab1853b3.meta *1* *0* *1*
05:21:48 /wp/news-america/ supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/news-america/
05:21:48 /wp/news-america/ No wp-cache file exists. Must generate a new one.
05:21:49 /wp/news-america/ In WP Cache Phase 2
05:21:49 /wp/news-america/ Setting up WordPress actions
05:21:49 /wp/news-america/ Created output buffer
05:21:56 /wp/news-america/ Output buffer callback
05:21:56 /wp/news-america/ Anonymous user detected. Only creating Supercache file.
05:21:56 /wp/news-america/ Writing non-gzipped buffer to supercache file.
05:21:56 /wp/news-america/ Renamed temp supercache file to /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/news-america/index.html
05:21:56 /wp/news-america/ Sending buffer to browser
05:21:56 /wp/news-america/ wp_cache_shutdown_callback: collecting meta data.
05:21:56 /wp/news-america/ Did not write meta file: wp-cache-1f9b36b07daef1a50ff161f1fe403ac0.meta *1* *0* *1*
05:22:24 /wp/technology/ supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/technology/
05:22:24 /wp/technology/ No wp-cache file exists. Must generate a new one.
05:22:24 /wp/technology/ In WP Cache Phase 2
05:22:24 /wp/technology/ Setting up WordPress actions
05:22:24 /wp/technology/ Created output buffer
05:22:26 /wp/technology/ Output buffer callback
05:22:26 /wp/technology/ Anonymous user detected. Only creating Supercache file.
05:22:26 /wp/technology/ Writing non-gzipped buffer to supercache file.
05:22:26 /wp/technology/ Renamed temp supercache file to /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/technology/index.html
05:22:26 /wp/technology/ Sending buffer to browser
05:22:26 /wp/technology/ wp_cache_shutdown_callback: collecting meta data.
05:22:26 /wp/technology/ Did not write meta file: wp-cache-459cb814c0cbcdfe33715faf2077e9d6.meta *1* *0* *1*
05:22:38 /wp/technology/tech-deals/ supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/technology/tech-deals/
05:22:38 /wp/technology/tech-deals/ No wp-cache file exists. Must generate a new one.
05:22:38 /wp/technology/tech-deals/ In WP Cache Phase 2
05:22:38 /wp/technology/tech-deals/ Setting up WordPress actions
05:22:38 /wp/technology/tech-deals/ Created output buffer
05:22:40 /wp/technology/tech-deals/ Output buffer callback
05:22:40 /wp/technology/tech-deals/ Anonymous user detected. Only creating Supercache file.
05:22:40 /wp/technology/tech-deals/ Writing non-gzipped buffer to supercache file.
05:22:40 /wp/technology/tech-deals/ Renamed temp supercache file to /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/technology/tech-deals/index.html
05:22:40 /wp/technology/tech-deals/ Sending buffer to browser
05:22:40 /wp/technology/tech-deals/ wp_cache_shutdown_callback: collecting meta data.
05:22:40 /wp/technology/tech-deals/ Did not write meta file: wp-cache-16483b11dd7d4a610a8321735b1720c2.meta *1* *0* *1*
05:23:10 /wp/news-europe/ supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/news-europe/
05:23:10 /wp/news-europe/ No wp-cache file exists. Must generate a new one.
05:23:10 /wp/news-europe/ In WP Cache Phase 2
05:23:10 /wp/news-europe/ Setting up WordPress actions
05:23:10 /wp/news-europe/ Created output buffer
05:23:15 /wp/news-europe/ Output buffer callback
05:23:15 /wp/news-europe/ Anonymous user detected. Only creating Supercache file.
05:23:15 /wp/news-europe/ Writing non-gzipped buffer to supercache file.
05:23:15 /wp/news-europe/ Renamed temp supercache file to /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/news-europe/index.html
05:23:15 /wp/news-europe/ Sending buffer to browser
05:23:15 /wp/news-europe/ wp_cache_shutdown_callback: collecting meta data.
05:23:15 /wp/news-europe/ Did not write meta file: wp-cache-5b32a5a7f83713da2249638721d1ccff.meta *1* *0* *1*
05:23:40 /wp/ supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/
05:23:40 /wp/ Served page from supercache file using PHP.
05:23:44 /wp/news-europe/ supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/news-europe/
05:23:44 /wp/news-europe/ Served page from supercache file using PHP.
05:24:03 /wp/ supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/
05:24:03 /wp/ Served page from supercache file using PHP.
05:25:44 /wp/wp-login.php In WP Cache Phase 2
05:25:44 /wp/wp-login.php Setting up WordPress actions
05:25:44 /wp/wp-login.php Not caching POST request.
05:25:44 /wp/wp-admin/ Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:44 /wp/wp-admin/ supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/wp-admin/
05:25:44 /wp/wp-admin/ Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:44 /wp/wp-admin/ No wp-cache file exists. Must generate a new one.
05:25:45 /wp/wp-admin/ Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:45 /wp/wp-admin/ In WP Cache Phase 2
05:25:45 /wp/wp-admin/ Setting up WordPress actions
05:25:45 /wp/wp-admin/ Not caching wp-admin requests.
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_incoming_links Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_incoming_links supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/wp-admin/index-extra.php/
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_incoming_links No wp-cache file exists. Must generate a new one.
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_incoming_links Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_incoming_links In WP Cache Phase 2
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_incoming_links Setting up WordPress actions
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_incoming_links Not caching wp-admin requests.
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_primary Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_primary supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/wp-admin/index-extra.php/
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_primary No wp-cache file exists. Must generate a new one.
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_primary Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_primary In WP Cache Phase 2
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_primary Setting up WordPress actions
05:25:47 /wp/wp-admin/index-extra.php?jax=dashboard_primary Not caching wp-admin requests.
05:25:48 /wp/wp-admin/index-extra.php?jax=dashboard_plugins Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:48 /wp/wp-admin/index-extra.php?jax=dashboard_plugins supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/wp-admin/index-extra.php/
05:25:48 /wp/wp-admin/index-extra.php?jax=dashboard_plugins No wp-cache file exists. Must generate a new one.
05:25:48 /wp/wp-admin/index-extra.php?jax=dashboard_plugins Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:48 /wp/wp-admin/index-extra.php?jax=dashboard_plugins In WP Cache Phase 2
05:25:48 /wp/wp-admin/index-extra.php?jax=dashboard_plugins Setting up WordPress actions
05:25:48 /wp/wp-admin/index-extra.php?jax=dashboard_plugins Not caching wp-admin requests.
05:25:48 /wp/wp-admin/index-extra.php?jax=dashboard_secondary Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:48 /wp/wp-admin/index-extra.php?jax=dashboard_secondary supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/wp-admin/index-extra.php/
05:25:48 /wp/wp-admin/index-extra.php?jax=dashboard_secondary No wp-cache file exists. Must generate a new one.
05:25:49 /wp/wp-admin/index-extra.php?jax=dashboard_secondary Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:49 /wp/wp-admin/index-extra.php?jax=dashboard_secondary In WP Cache Phase 2
05:25:49 /wp/wp-admin/index-extra.php?jax=dashboard_secondary Setting up WordPress actions
05:25:49 /wp/wp-admin/index-extra.php?jax=dashboard_secondary Not caching wp-admin requests.
05:25:50 /wp/wp-admin/options-general.php?page=wpsupercache Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:50 /wp/wp-admin/options-general.php?page=wpsupercache supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/wp-admin/options-general.php/
05:25:50 /wp/wp-admin/options-general.php?page=wpsupercache No wp-cache file exists. Must generate a new one.
05:25:51 /wp/wp-admin/options-general.php?page=wpsupercache Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:51 /wp/wp-admin/options-general.php?page=wpsupercache In WP Cache Phase 2
05:25:51 /wp/wp-admin/options-general.php?page=wpsupercache Setting up WordPress actions
05:25:51 /wp/wp-admin/options-general.php?page=wpsupercache Not caching wp-admin requests.
05:25:53 /wp/wp-admin/options-general.php?page=wpsupercache&tab=preload Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:53 /wp/wp-admin/options-general.php?page=wpsupercache&tab=preload supercache dir: /home/content/30/7992030/html/xyz/wp/wp-content/cache/supercache/xyz.com/wp/wp-admin/options-general.php/
05:25:53 /wp/wp-admin/options-general.php?page=wpsupercache&tab=preload No wp-cache file exists. Must generate a new one.
05:25:53 /wp/wp-admin/options-general.php?page=wpsupercache&tab=preload Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:53 /wp/wp-admin/options-general.php?page=wpsupercache&tab=preload In WP Cache Phase 2
05:25:53 /wp/wp-admin/options-general.php?page=wpsupercache&tab=preload Setting up WordPress actions
05:25:53 /wp/wp-admin/options-general.php?page=wpsupercache&tab=preload Not caching wp-admin requests.
05:25:57 /wp/wp-admin/options-general.php?page=wpsupercache&tab=preload Cookie detected: wordpress_logged_in_6c3ea25a8ac88bc22c523815158e2c3c
05:25:57 /wp/wp-admin/options-general.php?page=wpsupercache&tab=preload In WP Cache Phase 2
05:25:57 /wp/wp-admin/options-general.php?page=wpsupercache&tab=preload Setting up WordPress actions
05:25:57 /wp/wp-admin/options-general.php?page=wpsupercache&tab=preload Not caching wp-admin requests.I downloaded cronview and this is the output:
What’s in Cron?
Available schedulesEvery 3 Days, every 3 days
Once Hourly, every 60 mins
Twice Daily, every 12 hours
Once Daily, every 24 hours
EventsNext due (GMT/UTC) Schedule Hook Arguments
Mar 10, 2012 @ 22:32 (1331418733) One-off event wp_cache_check_site_hook
Mar 11, 2012 @ 0:11 (1331424694) One-off event upgrader_scheduled_cleanup
[0]: 100
Mar 11, 2012 @ 4:41 (1331440876) Twice Daily wp_version_check
Mar 11, 2012 @ 4:41 (1331440876) Twice Daily wp_update_plugins
Mar 11, 2012 @ 4:41 (1331440876) Twice Daily wp_update_themes
Mar 11, 2012 @ 16:43 (1331484220) Once Daily wp_scheduled_delete
Mar 13, 2012 @ 0:00 (1331596800) Every 3 Days wp_cache_gc
Mar 13, 2012 @ 16:51 (1331657485) Every 3 Days onenews_backup_hookIt is not showing that Preloading is even scheduled right?
Another cronview snapshot – looks like it shows the Preloading
What’s in Cron?
Available schedulesEvery 3 Days, every 3 days
Once Hourly, every 60 mins
Twice Daily, every 12 hours
Once Daily, every 24 hours
EventsNext due (GMT/UTC) Schedule Hook Arguments
Mar 10, 2012 @ 22:32 (1331418733) One-off event wp_cache_check_site_hook
Mar 11, 2012 @ 0:11 (1331424694) One-off event upgrader_scheduled_cleanup
[0]: 100
Mar 11, 2012 @ 0:38 (1331426314) One-off event wp_cache_preload_hook
Mar 11, 2012 @ 4:41 (1331440876) Twice Daily wp_version_check
Mar 11, 2012 @ 4:41 (1331440876) Twice Daily wp_update_plugins
Mar 11, 2012 @ 4:41 (1331440876) Twice Daily wp_update_themes
Mar 11, 2012 @ 16:43 (1331484220) Once Daily wp_scheduled_delete
Mar 13, 2012 @ 0:00 (1331596800) Every 3 Days wp_cache_gc
Mar 13, 2012 @ 16:51 (1331657485) Every 3 Days onenews_backup_hookWhere does the Pre Load get what pages to Pre Load from?
I am seeing some pages preloading while others are not.
Also, the only way I can get the mobile pages to preload is if I physically take my mobile phone and call up each page.
Would be nice to have an area where we tell the Pre Load what pages we want to Pre Load, and then when we say Pre Load Cache Now – it preloads all the pages you listed.
The plugin just grabs the page list from the database.
Mobile themes can’t be preloaded right now. I don’t have any plans to add that feature.
If you can submit a patch to add the features you want I’ll gladly add the code. Unfortunately my time is limited.
>> The plugin just grabs the page list from the database.
Thank You Donncha,
Can I probe the database to see if all the pages are present?
Also, What triggers the PreLoading? I just installed a new WP, and Theme and WP Super Cache and set the Preload to 30min. No Widgets and a single page of RSS Feeds – after 30 minutes no Preload. After 1, 2 hours no Preload. Then as soon as I browse the page with another computer – I get emails – Front Page Check, Cache Preload Started and then Cache Preload Complete – but it did not Preload?
>> If you can submit a patch to add the features you want I’ll gladly add the code. Unfortunately my time is limited.
I’m learning, I may be able to assist. I may need some pointers.
The topic ‘[Plugin: WP Super Cache] Pre Loading Problems’ is closed to new replies.