Garbage collector problem
-
Hello.
First I’d like to say “thank you” for this very good plugin to cache WordPress based websites. Thanks to this, some of my websites are now very fast.
However, I’d like to submit bug. There are some situations when garbage collector is not working. The problem was in this: no stale files was deleted. Garbage collector was correctly executed by cron, but it never deleted anything.
I’ve tried to debug and I found the problem. The problem is: when there is no “/wp-content/cache/blogs/blog” directory, there will be no purge of supercache. It is in your code in file “wp-cache-phase2.php” between lines 784 and 807. The condition
if ( ( $handle = @opendir( $blog_cache_dir ) ) ) {
is ok, but – in my opinion – it should not be used to check if there can be purging the supercache. I think the solution to this is to move lines between 803 and 806 from this condition to make it always happen – even, when there is no “/wp-content/cache/blogs/blog” directory.My solution was to manually create “/wp-content/cache/blogs/blog” directory and all problems was gone. But I think it is some minor bug which should be corrected, because it can make some problem for some users.
- The topic ‘Garbage collector problem’ is closed to new replies.