Fix WP Super Cache Errors: No Cached Pages

By Posted 2008 Updated   BloggingWordPress

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.

  1. Is wp-content writable by the web server?
    Yes. Looked for file permissions. All OK
  2. 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.
  3. 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.
  4. 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.
  5. Try the Options->WP Super Cache page again and enable cache.
    Done. OK. But the status is still same.
  6. Look in wp-content/cache/supercache/…
    Something wrong. No files there. No folder there.
  7. Anything in your php error_log?
    No.
  8. 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.
  9. The plugin does not work when PHP’s safe mode is active.
    Ok. No problems.
  10. 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.


19 comments on “Fix WP Super Cache Errors: No Cached Pages

  1. Techblissonline Dot Com says:

    If you were not able to delete it you could have tried renaming it….but yes you were able to delete it finally…gud luck…

    one more thing i notice your site loading slowere these days…earler it use to be super fast…you could check that as well…may be it is related to the heavy load as you mention…

  2. Abhijeet from Jeet Blog says:

    I had the exactly the same problem a few days ago and I too was unable to delete the advanced-cache.php file.

    Hence I went ahead and renamed it to something different using FTP and then deleted the other cache files, uninstalled and reinstalled the plugin completely to make it work.

    But today I learnt a new trick. Thanks to you ! I hope the way in which I resolved the wp-super cache issue doesn’t create any further problems for me. What do you say ?

  3. ROW says:

    Seems you are trying every possible measure to minimize server load :) …a bit of a suggestion…[I hope you are already doing that]….it seems from one of your yesterday posts that you touched putty for the first time… in all probability you are not taking your hosting account regular back ups…if thats the case started doing right away…you never know when your host can ban you for no fault of yours…that was quite evident in the last sentence of that mail you sharedin your blog…
    my 2 cents

  4. Michael says:

    Great tips, I have been using WP-Cache for a while and was thinking about moving to Super Cache, when I do I’m sure this will be a great reference.

    But, for now, I’m going to be sticking with WP-Cache, my site isn’t under too much load and if I don’t have to install a new caching plugin then I won’t.

  5. Donncha O Caoimh says:

    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.

  6. abhishek says:

    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

  7. QuickOnlineTips says:

    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.

  8. Raghuvir says:

    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?

  9. Steve Yu says:

    Thanks a million for the tips. It’s really works for my blog! I’m glad that I found this post. :D

  10. Felix Ker says:

    Hey the tips helped!

  11. Brett McKay says:

    I don’t even have an advanced-cache.php file. It’s not being created. Any ideas on why this might be?

  12. QuickOnlineTips says:

    Brett – you have to check the write permissions if the file is not being created.

  13. dennisd says:

    My website is running under a Windows server and cannot link the advanced-cache.php to wp-cache-phase1.php. Also when I just copy wp-cache-phase1.php to my Content folder and rename it to advanced-cache.php the supercache setting in the WP-admin is finaly working, but supercache is not caching pages. Any suggestions anyone?

  14. the art says:

    Great troubleshooting on super-cache. I was not going to upgrade because of similar problems but now I may just go ahead.

    Thanks for the info,
    Richard

  15. fino says:

    This what i looking for. I fail to install super cache, thanks for info. Ill try step by step.

  16. Ian O'Neill says:

    Thank you for posting this, it saved my skin! Super cache was disabled for some odd reason, and it was only through following your advice that I managed to unblock the issue.

    Key to this was deleting advanced-cache.php through SSH and then letting super cache rebuild it on plugin reactivation.

    Great check-list, I’ll be saving this.

    Thanks you!

    Ian

  17. Sarbjit Singh says:

    I was facing the same issue as I got a new VPS server.

    Your detailed steps really helped me solve the issue, Thank you so much..

    I had to do a manual reinstall to fix it.

  18. Tarandeep singh says:

    kool. It works.

  19. Didier Sampaolo says:

    Almost 2 hours searching what was wrong with my config… I was missing the define(“WP_CACHE”,true). Man, you seriously rocked my world on this one. Many thanks !

Leave a Reply

Your email address will not be published. Required fields are marked *




css.php