Page 1 of 1
Caching works, Auto-caching does not.
Posted:
July 16th, 2010, 7:17 pm
by DanielMaloney
Hi All,
Set up Quick Cache on my page... Works great!!
Except...
Auto Caching does not work at all. I'm running wordpress 3.0, and my server works with cron jobs. The page does not auto regenerate after its expiration time.
Any ideas or a work around on how I can make it auto-regenerate?
Much love,
DM
Re: Caching works, Auto-caching does not.
Posted:
July 22nd, 2010, 5:02 am
by Jason Caldwell
Hi Daniel. Did you enter the URL to your Sitemap?
~ Just trying to get a bigger picture of your configuration.
Re: Caching works, Auto-caching does not.
Posted:
July 22nd, 2010, 10:46 pm
by DanielMaloney
Hi Jay - Yep, tried entering in the URL manually and using the google sitemap plugin.
Re: Caching works, Auto-caching does not.
Posted:
July 23rd, 2010, 12:02 am
by Jason Caldwell
I've not been able to reproduce this as a bug,
so I'm assuming this is a configuration issue, or a plugin conflict perhaps.
Here are some things I would look at ( possible solutions ).- Is Auto-Cache enabled?
- Is Quick Cache enabled?
- Is your Sitemap URL filled in?
- Have you configured any No-Cache rules that might be preventing Quick Cache from working as expected?
- What is your Cache Expiration setting? It must be at least 3600. Otherwise, the Auto Cache engine will not run. This is for security and bandwidth protection.
- Do you have a /wp-content/cache/qc-l-auto-cache.log file? If so, what does it tell you?
- Under the Quick Cache -> Auto Cache panel, what is "Auto Cache User-Agent String" set to?
- Under the Quick Cache -> Auto Cache panel, what is "Maximum Processes Allowed" set to?
Re: Caching works, Auto-caching does not.
Posted:
July 23rd, 2010, 5:47 am
by DanielMaloney
Heya Jay - Here's my full settings:
Quick Caching Enabled? On (Enabled)
Enable Internal Debugging For Quick Cache? False (Disable)
Don't Cache Pages For Logged In Users? True (Don't Cache)
Don't Cache Query String GET Requests? True (Don't Cache)
Allow Double-Caching In The Client-Side Browser? False (Disallow)
Set The Expiration Time On Quick Cache Files? 3600
Enable Dynamic Cache Pruning Routines? Single (Purge only the specific post/page)
Don't Cache These Special URI Patterns?
"wp-app
wp-admin
wp-login
xmlrpc.php"
Don't Cache These Special Referrer Patterns? (Empty)
Don't Cache These User-Agent Patterns? "wc3_validator"
Maintain Mutex Using Flock() Or A Semaphore? Mutex (Semaphore)
Create An MD5 Version Salt For Quick Cache? (Empty)
XML Sitemap Auto-Caching + Additional URLs
Enable The Auto-Cache Engine? Yes (Keep my site auto-cached)
Auto Cache User-Agent String: "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
The Full URL To Your XML Sitemap: "http://woodstock.snapnews.ca/sitemap.xml"
A List Of Additional URLs, to "Auto-Cache" ( one per line ): "http://woodstock.snapnews.ca/"
Maximum Processes Allowed ( prevents flooding ): Up to 25 pages (Every 5 Minutes)
Deactivation Safeguards ( optional, recommended ): Yes
The plugin works perfect when I hit the page, It caches, works just fine. No /wp-content/cache/qc-l-auto-cache.log is being created.
As a workaround is there a way to run the autocaching routine via a cron?
I will also pay you to fix the problem.
Re: Caching works, Auto-caching does not.
Posted:
July 23rd, 2010, 6:37 am
by DanielMaloney
Hey Jay,
Just tried setting the cache expiry to 3720 to see if I was not caching due to being right at 3600 but the problem was not fixed.
DM
Re: Caching works, Auto-caching does not.
Posted:
July 28th, 2010, 3:32 am
by Jason Caldwell
Gotchya. Thanks for reporting back on this.Here is one other thing you can try. It is possible that your installation of WordPress has
WP_Cron disabled. Try adding this to the functions.php file for your WordPress theme, and see if you get the error message in your Dashboard.
- Code: Select all
if(is_admin())
if(!function_exists("wp_cron") || (defined('DISABLE_WP_CRON') && DISABLE_WP_CRON))
echo 'WP_Cron has been disabled on your WordPress installation.';
If you still have no luck, please feel free to email me a WP Dashboard login.
I'll be happy to have a look for you. You can use the email link under my name.
Re: Caching works, Auto-caching does not.
Posted:
July 31st, 2010, 9:22 pm
by DanielMaloney
Hi Jason,
No still no luck - It does give me the error message when we put that code in.
I really just want to pay you to fix it for me if possible, It's very important this works last week.
My e-mail address is
dmaloney@yourtechie.ca.
Cheers,
DM
Re: Caching works, Auto-caching does not.
Posted:
August 4th, 2010, 10:27 pm
by Jason Caldwell
Hi there. Thanks for reporting back. Your emails were received.So if you're putting in this code, and it DOES trigger the error message, then you'll need to contact your hosting provider. If your hosting provider has disabled WP_Cron, you'll need to have them turn it on; or switch hosting providers. I'm sorry, if that code snippet returns an error, there is nothing I can do.
- Code: Select all
if(is_admin())
if(!function_exists("wp_cron") || (defined('DISABLE_WP_CRON') && DISABLE_WP_CRON))
echo 'WP_Cron has been disabled on your WordPress installation.';
You could also check your /wp-config.php file.
If you find a line inside your /wp-config.php file that looks like this:
- Code: Select all
define("DISABLE_WP_CRON", true);
you'll need to remove it.
Re: Caching works, Auto-caching does not.
Posted:
August 5th, 2010, 6:16 am
by DanielMaloney1
Hi Jason,
We run on 2 dedicated servers - no hosting provider here, and we're not blocking WP_Cron.
We have WP-Cron running and preforming other tasks. The error message I saw before that I reported on was just due to me putting the code in the wrong spot.
Re: Caching works, Auto-caching does not.
Posted:
August 5th, 2010, 11:31 am
by Jason Caldwell
Thanks for reporting back Daniel.
~ Please email me a Dashboard login to your installation of WordPress.
I'll have a look for you.
Re: Caching works, Auto-caching does not.
Posted:
November 24th, 2010, 12:41 am
by nowsms
FWIW, I was having this same problem.
The qc-l-auto-cache.log was not being created. Other wp-cron jobs were definitely running.
I changed this setting: "Maintain Mutex Using Flock() Or A Semaphore?" ... to "Flock" ... and auto-cache started working properly.
I'm running on Rackspace Cloud ... and the notes under the settings say that I should be using this particular setting in that environment ... I just hadn't noticed it before, and wasn't seeing any other problems or issues.
I'll be curious to see how auto-caching works, now that I can see it is definitely pulling down pages now and updating the cache.
Re: Caching works, Auto-caching does not.
Posted:
December 22nd, 2010, 6:44 pm
by Lincoln
Just chiming in, auto-caching also did not work for me either until I changed the option for Mutex File Locking from "Semaphore" to "Flock." I'm on a Litespeed powered server by the way. I have a feeling when the server does not use Semaphore and Quick Cache drops back to Flock as a result, you still need to manually set it to Flock in order for auto caching to work.
Re: Caching works, Auto-caching does not.
Posted:
September 4th, 2011, 8:48 am
by bsl1964
I am trying to use the auto cache. My sites says:
<!-- Quick Cache Is Fully Functional
... A Quick Cache file was just served for (
www.hcgdietreviews101.com ) in 0.01792 seconds, on Sep 4th, 2011 at 1:43 pm UTC. -->
I have set everything correctly but I do not see a /wp-content/cache/qc-l-auto-cache.log
I have set Mutex to Flock and it still does not seem to create a /wp-content/cache/qc-l-auto-cache.log file.
I assume this means auto cache is not working.
What else can I do?
Re: Caching works, Auto-caching does not.
Posted:
September 29th, 2011, 5:29 am
by nouxtywe
Jason Caldwell wrote:Hi there. Thanks for reporting back. Your emails were received.So if you're putting in this code, and it DOES trigger the error message, then you'll need to contact your hosting provider. If your hosting provider has disabled WP_Cron, you'll need to have them turn it on; or switch hosting providers. I'm sorry, if that code snippet returns an error, there is nothing I can do.
- Code: Select all
if(is_admin())
if(!function_exists("wp_cron") || (defined('DISABLE_WP_CRON') && DISABLE_WP_CRON))
echo 'WP_Cron has been disabled on your WordPress installation.';
You could also check your /wp-config.php file.
If you find a line inside your /wp-config.php file that looks like this:
- Code: Select all
define("DISABLE_WP_CRON", true);
you'll need to remove it.
Hi, I have my own dedicated server, I didn't desactivated anything but I got your message "WP_Cron has been disabled..." when I added your code.
I can't explain that, any tips on how to fix this ?
QC caching works but not garbage collection nor auto caching (not surprising, eh)
Re: Caching works, Auto-caching does not.
Posted:
September 29th, 2011, 5:35 am
by nouxtywe
And by the way when I use the ssh command
"php wp_cron.php" the garbage collection works, but the auto cache does not...... O.o ?
Re: Caching works, Auto-caching does not.
Posted:
January 6th, 2012, 7:13 pm
by doctorproctor
I have the same general problem: caching is working fine, but not auto-caching. I wanted it to work with specific URLs, not an XML sitemap, and inputted a dozen or so into the settings window then enabled the auto-cache engine. I have yet to see qc-l-auto-cache.log appear, though numerous cached files do.
My expiration setting is 3600. I'm running v111203 with WP x3.2.1. Happy to submit other settings as needed.
In comparing the alternatives for WP caching, I went with QuickCache in part due to this auto-cache functionality and the ability to directly enter URLs. My site (sge.lclark.edu) actually loads just fine except for some time-consumptive pages; without auto-caching, each of these pages greets one unlucky browser upon each initial load!
Thanks much for whatever help you may have.
Regards,
Jim P.
Re: Caching works, Auto-caching does not.
Posted:
January 7th, 2012, 3:33 pm
by doctorproctor
Okay, realized this AM that my problem too is with WP cron jobs; some details:
- Manually invoked wp-cron.php and all went well on the Quick Cache end, including other scheduled cron jobs (installed Cron GUI plugin to check)
- Checked my server (Ubuntu), and server cron jobs seem to be going well, which as I understand doesn't matter since separate from wp-cron?
- Tried your recommended code above in functions.php, but no error msg
- Installed WP-Cron Control plugin as cron workaround, and got to work successfully (checked logs) but didn't call WP cron jobs
So at this point I'm stuck! I did a fairly thorough search for WP cron problems, and some appeared around v2.9 but none later, and the v2.9 workaround didn't help. One odd thing is that I do receive regular version/plugin/theme update notifications, which appear to be called via wp-cron (they're in my queue), but your Quick Cache events are in the queue as well and they don't seem to get executed (cache flush, garbage collector, etc.)
Sure appreciate any help with this; will post to general WP forum too re. cron.
Jim P.
Re: Caching works, Auto-caching does not.
Posted:
January 10th, 2012, 6:28 pm
by doctorproctor
Okay, now invoking wp-cron.php via server cron job at regular intervals and now Quick Cache works. I still wonder why wp-cron.php is not working on my server (WP v3.2.1)? (Realize this is separate from QuickCache.)
Jim