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...

Comments

SteffenMaass’s picture

Status: Active » Needs review
StatusFileSize
new419 bytes

I've created a new hook implementation, the hook_flush_caches provides the functionality I was looking for...
Maybe this is useful for someone else...

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

Looks right to me.

SteffenMaass’s picture

StatusFileSize
new413 bytes

Sorry, but the patch from #1 is not working,
here's the right patch...

joshk’s picture

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.

Also a big deal in 5.x. I'm working on this as well.

Terko’s picture

Applied the patch, but on cron run symbolic links are not deleted. Everything other is deleted.

alex s’s picture

StatusFileSize
new1.65 KB

SteffenM, a small modification of yor patch, deleted unnecessary function boost_admin_clear_cache_submit()

mikeytown2’s picture

As a side note, after fixing this error #367081: System-Ran Cron, Not User the cache is fully cleared. Thought it might be related.

ckng’s picture

mikeytown2’s picture

Issue tags: +Release blocker

looking this over and post #3 is the right first step, might want to do post #6 at a later date.

fuzzydru’s picture

does 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.

mikeytown2’s picture

Status: Reviewed & tested by the community » Fixed

6.x patch committed. Patches for 5.x welcome.

Status: Fixed » Closed (fixed)
Issue tags: -Release blocker

Automatically closed -- issue fixed for 2 weeks with no activity.