Fix WP Super Cache Errors: No Cached Pages
Caching of your wordpress files is very important to reduce the server and database load, especially in shared hosting scenarios. WP-Supercache, the next generation of WP-Cache is a powerful wordpress caching plugin.
WP-Cache 2 is a popular plugin that caches the pages of your WordPress blog and delivers them without accessing the database, but it still means loading the PHP engine to serve the cached files; WP Super Cache gets around that by generating html files that are served without invoking a single line of PHP!
WP-Cache had problems working on this blog and always ended up bringing the site down. After this site overloaded servers, I had to try installing WP-supercache to see if might work. The installation and activation went without a hitch, the blog was loading fine, but no pages were being cached!
WordPress Super Cache Not Working?
I looked up the Troubleshooting page and here is the checklist.
- Is wp-content writable by the web server?
Yes. Looked for file permissions. All OK - Is there a wp-content/wp-cache-config.php ?
I deleted it earlier as preinstallation task (earlier installed by WP-cache). This was created there when plugin activated. - Is there a wp-content/advanced-cache.php ?
I was unable to delete this linked file via FTP as a preinstallation task (earlier installed by WP-cache). But it was still there. - Make sure the following line is in wp-config.php
define( 'WP_CACHE', true );
This entry was deleted from wp-config.php as a preinstallation task (earlier installed by WP-cache) and now it was recreated back in the same place. - Try the Options->WP Super Cache page again and enable cache.
Done. OK. But the status is still same. - Look in wp-content/cache/supercache/…
Something wrong. No files there. No folder there. - Anything in your php error_log?
No. - If your browser keeps asking you to save the file…
Well Super Cache compression was disabled by default in the options and browser asked nothing. - The plugin does not work when PHP’s safe mode is active.
Ok. No problems. - Your blog can be viewed with and without the “www” prefix.
Blog set to view as www. No problem there.
Fix WP-Super-Cache Problems
Then I went about checking and here are the few tips that worked for me, and might work for you too.
1. No Supercache Folder – In #6 supercache folder was missing, so I had to manually create the folder as it was not there. I used FTP to login to my server using Filezilla and created wp-content/cache/supercache/. But still not working.
2. Change Settings – I tried working in HALF ON (Super Cache Disabled) mode, Super Cache Compression on and off mode, checked the .htaccess files for correct mod_rewrite rules (important to check!), but nothing worked.
2. Deleting advanced-cache.php. Then I realized that in #3, I was unable to delete advanced-cache.php. Though I believed the installation had rewritten on the linked file, it might have not.
The ealier wp-cache file was linked to wp-cache/wp-cache-phase1.php
but the supercache file should link to wp-super-cache/wp-cache-phase1.php
I thought this was the problem. But I was unable to delete it via FTP. So I used my newly acquired SSH skills and use PuTTY to get in and delete the file.
cd wp-content
rm advanced-cache.php
and the file was finally deleted. Disable and Activate the plugin, it generated a new advanced-cache.php with the new shortcut. I could have also tried
ln -s plugins/wp-super-cache/wp-cache-phase1.php advanced-cache.php
Guess what…. it started to work!!!
If that does not help you, look up the wordpress forums for more support.













That’s something I must watch out for. It would be easy enough to catch if I added a global variable to wp-cache-phase1.php
Do you remember if there was a warning in the backend page? It should have warned you about the wrong symlink.
I faced some issues when i was moving my site with wp cache plugin..and in a hurry to sort out things and site down issue i commented every things there in wp-config and wp-settings.
But now i will take a fresh look again considering all the steps u have just mentioned.
good post..neways
wp-supercache is working great after these fixes and I personally find the site is much faster. DH tells me the server load is also much better.
I did not try renaming the php file when I could not delete it, but that sounds like a good idea.
Donncha – There was no warning after the wrong symlink. The plugin was not able to overwrite it.
Superb in-depth article you’ve written. I’ve been visiting your blog for a long time, but never really commented. I can see that you are so happy after you figured out ways to balance your blog on DH and learn putty. In a way, the downtime has actually helped you in many other ways. Right?
As you said, super cache generates html pages-do you think in anyway it’ll affect SEO? Does that also mean that every entry of yours now would also have a static html page?
Thanks a million for the tips. It’s really works for my blog! I’m glad that I found this post. :D