If I'm right, the function boost_cache_clear_all should delete all files from my cache directory if I manually clear the cache.
This doesnt happen and as I have CSS aggregation enabled the anonymous visitors to my site get a cached page, but with a wrong CSS-File resulting in a bad design.
The files are furthermore never cleared using the clear cache-command on the admin => settings => performance page, although they have expired.
On the other hand, a cronrun clears all expired files from the cache-directory, but also fails with clearing still unexpired files.
While looking at the code, I didn't notice any severe difference regarding the boost_cache_clear_all and the boost_cron function.
I also tried to remove the NULL-parameter in the cache_clear_all function, without success.
Has anybody the same problem, or some hints?
Specifications:
PHP 5.2.6
Boostversion 6.x-1.x-dev
Drupal 6.8
Installation in subdirectory, therefore some modifications to the .htaccess were made, but I highly doubt, that this is the problem...
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | boost_flush_caches.patch | 1.65 KB | alex s |
| #3 | boost_cache.patch | 413 bytes | SteffenMaass |
| #1 | boost_cache.patch | 419 bytes | SteffenMaass |
Comments
Comment #1
SteffenMaass commentedI've created a new hook implementation, the hook_flush_caches provides the functionality I was looking for...
Maybe this is useful for someone else...
Comment #2
moshe weitzman commentedLooks right to me.
Comment #3
SteffenMaass commentedSorry, but the patch from #1 is not working,
here's the right patch...
Comment #4
joshk commentedAlso a big deal in 5.x. I'm working on this as well.
Comment #5
Terko commentedApplied the patch, but on cron run symbolic links are not deleted. Everything other is deleted.
Comment #6
alex s commentedSteffenM, a small modification of yor patch, deleted unnecessary function boost_admin_clear_cache_submit()
Comment #7
mikeytown2 commentedAs a side note, after fixing this error #367081: System-Ran Cron, Not User the cache is fully cleared. Thought it might be related.
Comment #8
ckng#6 seems to solve the problem I've in #365864: CSS Aggregating & Boost: page not found - css file
Comment #9
mikeytown2 commentedlooking this over and post #3 is the right first step, might want to do post #6 at a later date.
Comment #10
fuzzydru commenteddoes anyone have any news on a fix for 5.x?
It's the same problem here. Boost is pretty unusable with cron run enabled, etc.
Comment #11
mikeytown2 commented6.x patch committed. Patches for 5.x welcome.