WP Super Cache Expired Pages Not Deleting
-
I just upgraded to WP 2.7. Users are reporting on some computers they are still seeing data as of the upgrade on 12/10. But on others they are seeing what is most up to date. I tried clearing cache but some won’t delete.
WP-Cache
* 0 cached pages
* 0 expired pagesWP-Super-Cache
* 0 cached pages
* 364 expired pages.Are these problems related? I’d like to solve both.
-
This problem was reported before and is supposedly fixed in the latest version. As far as I know this has nothing to do with 2.7. If you have the latest version, we’ll have to get Donncha’s attention 🙂
I just tried, it works fine with me, contrary to a previous version.
I’m showing I have 0.8.6
Weird. I guess we’ll have to wait until Donncha is online then…
Not to rush anyone but do we know when to expect a response? I see that he provides awesome support for this plugin but I’d just like to know what to expect if anyone has a clue. The site isn’t updating for some people for a week now. I try to deactivate the plugin and then other people can’t see the site at all. As I’m logged in, I can continue to see the site in my browser with all the updates. It is the same if I only turn it half-on. Is there some way to manually remove the 364 expired pages through ftp without messing something up? I just need a work around. Since traffic is low for us around the holidays, I’m ok with not having the plugin activated at all if I can get the site to work without it.
Check for files or directories with backslashes in them (\) in the supercache directory.
Check your cache/.htaccess file. The admin page of the plugin lists the rules that should go into this file. It’s NOT the htdocs/.htaccess file.
Unless your site is extremely busy, the half on mode should be fine.
I don’t see any files with \ in them.
Following is my cache/.htaccess file
# BEGIN supercache
<IfModule mod_mime.c>
AddEncoding gzip .gz
AddType text/html .gz
</IfModule>
<IfModule mod_deflate.c>
SetEnvIfNoCase Request_URI \.gz$ no-gzip
</IfModule>
<IfModule mod_headers.c>
Header set Cache-Control ‘max-age=300, must-revalidate’
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html A300
</IfModule># END supercache
We’ve had up to 10K visits in an hour before it shut the server down.
I found some info in the error logs that may help.
[Fri Dec 19 13:52:38 2008] [error] [client 71.192.188.253] PHP Fatal error: Call to a member function get() on a non-object in /home/onetree/public_html/wp-includes/cache.php on line 93, referer: http://www.onetreehillblog.com/
[Fri Dec 19 13:34:12 2008] [error] [client 82.152.72.17] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/onetree/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 227, referer: http://images.google.co.uk/imgres?imgurl=http://www.onetreehillblog.com/wp-content/uploads/2008/03/sophia-bush.jpg&imgrefurl=http://www.onetreehillblog.com/2008/03/05/sophia-bush-with-pit-bull-patch-at-lax/&usg=__DhdwR3Qjv4Q3iuk_AtjJGNGCU7c=&h=450&w=339&sz=52&hl=en&start=31&tbnid=RFsXWCob-oiCkM:&tbnh=127&tbnw=96&prev=/images%3Fq%3Dsophia%2Bbush%26start%3D21%26gbv%3D2%26ndsp%3D21%26hl%3Den%26sa%3DN
[Fri Dec 19 13:34:03 2008] [error] [client 82.152.72.17] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/onetree/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 227, referer: http://images.google.co.uk/imgres?imgurl=http://www.onetreehillblog.com/wp-content/uploads/2008/03/sophia-bush.jpg&imgrefurl=http://www.onetreehillblog.com/2008/03/05/sophia-bush-with-pit-bull-patch-at-lax/&usg=__DhdwR3Qjv4Q3iuk_AtjJGNGCU7c=&h=450&w=339&sz=52&hl=en&start=31&tbnid=RFsXWCob-oiCkM:&tbnh=127&tbnw=96&prev=/images%3Fq%3Dsophia%2Bbush%26start%3D21%26gbv%3D2%26ndsp%3D21%26hl%3Den%26sa%3DNbennettaj – that’s useful. That error on line 227 is a bug, but it’s part of a chunk of code that means that the plugin couldn’t write the supercache file. Not sure why though.
Hello donncha,
I’ve started using super cache few days ago and actually I was very satisfied by its results. I downloaded the latest version and installed it on wordpress.
I am using PHP Speady plugin, and am not sure if it conflicts with super cache, or prevents cached pages from being deleted. Anyway, whenever I leave my blog for a day of such, I come back to find it full of weird characters. Nothing shows up in the blog; only a white page with those characters.
So what I do to solve that is that I delete the cached files and turn super cache plugin off.
Do you have any idea y this is happening?
Thank you.I finally removed all files under supercache and then it started working ok. I’m good now.
aouni-tahech – the plugin doesn’t work with php-speedy. There is a patch that works for some people but I haven’t tested it so I can’t vouch for it. Look at the php-speedy website for more info.
- The topic ‘WP Super Cache Expired Pages Not Deleting’ is closed to new replies.