Closed (fixed)
Project:
Boost
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2012 at 07:17 UTC
Updated:
22 Oct 2019 at 18:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gielfeldt commentedHere's a patch...
Comment #2
bgm commentedCan you give more information on how lock_may_be_available('cron') may span across requests?
Does checking for cron.php explicitely also work when the cron is called from drush?
Thanks for the patch.
Comment #3
gielfeldt commentedHi bgm
One of the main purposes of a lock/semaphore is that it's available across requests, so one may take concurrency into consideration. The lock is stored in the DB (or memcache or other backend). It's available to whoever asks for it. So if cron is running, and you then invoke the flush_caches, then Boost will not flush its caches, because it thinks cron is running ... because cron __is__ running, just in another request.
The patch didn't support Drush, well spotted. I've added a new patch that supports Drush as well.
Comment #4
gielfeldt commentedAny news on this?
Comment #5
heddnIt works. I tested both with drush and cron.php on a fairly complicated site that also has boost installed.
Comment #7
ram4nd commented