{"id":3192,"date":"2008-05-28T15:39:49","date_gmt":"2008-05-28T10:09:49","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/?p=3192"},"modified":"2020-05-24T09:59:02","modified_gmt":"2020-05-24T04:29:02","slug":"fix-wp-super-cache-errors","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2008\/05\/fix-wp-super-cache-errors\/","title":{"rendered":"Fix WP Super Cache Errors: No Cached Pages"},"content":{"rendered":"<p>Caching of your wordpress files is very important to reduce the server and database load, especially in shared hosting scenarios. <a href=\"https:\/\/wordpress.org\/plugins\/wp-super-cache\/\" rel=\"noopener\">WP-Supercache<\/a>, the next generation of WP-Cache is a powerful wordpress caching plugin.<\/p>\n<p>WP-Cache 2 is a popular plugin that caches the pages of your WordPress blog and delivers them <strong>without accessing the database<\/strong>, but it still means loading the PHP engine to serve the cached files; WP Super Cache gets around that by<strong> generating html files<\/strong> that are served without invoking a single line of PHP!<\/p>\n<p><a href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/10\/wp-cache-bug-strikes-back-site-down-17-hours\/\">WP-Cache had problems<\/a> 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!<\/p>\n<h3>WordPress Super Cache Not Working?<\/h3>\n<p>I looked up the <a href=\"https:\/\/wordpress.org\/plugins\/wp-super-cache\/#faq\" rel=\"noopener\">Troubleshooting<\/a> page and here is the checklist.<\/p>\n<ol>\n<li><strong>Is wp-content writable by the web server?<\/strong><br \/>\nYes. Looked for file permissions. All OK<\/li>\n<li><strong>Is there a wp-content\/wp-cache-config.php ?<\/strong><br \/>\nI deleted it earlier as preinstallation task (earlier installed by WP-cache). This was created there when plugin activated.<\/li>\n<li><strong>Is there a wp-content\/advanced-cache.php ?<\/strong><br \/>\nI was unable to delete this linked file via FTP as a preinstallation task (earlier installed by WP-cache). But it was still there.<\/li>\n<li><strong>Make sure the following line is in wp-config.php <code>define( 'WP_CACHE', true );<\/code><\/strong><br \/>\nThis 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.<\/li>\n<li><strong>Try the Options-&gt;WP Super Cache page again and enable cache.<\/strong><br \/>\nDone. OK. But the status is still same.<\/li>\n<li><strong>Look in wp-content\/cache\/supercache\/&#8230;<\/strong><br \/>\nSomething wrong. No files there. No folder there.<\/li>\n<li><strong>Anything in your php error_log?<\/strong><br \/>\nNo.<\/li>\n<li><strong>If your browser keeps asking you to save the file&#8230;<\/strong><br \/>\nWell Super Cache compression was disabled by default in the options and browser asked nothing.<\/li>\n<li><strong>The plugin does not work when PHP&#8217;s safe mode is active. <\/strong><br \/>\nOk. No problems.<\/li>\n<li><strong>Your blog can be viewed with and without the &#8220;www&#8221; prefix.<\/strong><br \/>\nBlog set to view as www. No problem there.<\/li>\n<\/ol>\n<h3>Fix WP-Super-Cache Problems<\/h3>\n<p>Then I went about checking and here are the few tips that worked for me, and might work for you too.<\/p>\n<p><strong>1. No Supercache Folder<\/strong> &#8211; 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 <a href=\"https:\/\/filezilla-project.org\/\" rel=\"noopener\">Filezilla<\/a> and created <em>wp-content\/cache\/supercache\/. <\/em>But still not working.<\/p>\n<p><strong>2. Change Settings<\/strong> &#8211; 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.<\/p>\n<p><strong>2. Deleting advanced-cache.php<\/strong>. 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.<\/p>\n<p>The ealier wp-cache file was linked to <em>wp-cache\/wp-cache-phase1.php <\/em><br \/>\nbut the supercache file should link to <em>wp-super-cache\/wp-cache-phase1.php<br \/>\n<\/em><br \/>\nI thought this was the problem. But I was unable to delete it via FTP. So I used my newly acquired SSH skills and use <a href=\"https:\/\/www.putty.org\/\" rel=\"noopener\">PuTTY<\/a> to get in and delete the file.<br \/>\n<code>cd wp-content<br \/>\nrm advanced-cache.php<\/code><\/p>\n<p>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<br \/>\n<code>ln -s plugins\/wp-super-cache\/wp-cache-phase1.php advanced-cache.php<\/code><\/p>\n<p>Guess what&#8230;. it started to work!!!<\/p>\n<p>If that does not help you, look up the wordpress forums for more support.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Caching of your wordpress files is very important to reduce the server and database load, especially in shared hosting scenarios&#8230;.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6],"tags":[17],"class_list":["post-3192","post","type-post","status-publish","format-standard","hentry","category-blogging","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/3192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=3192"}],"version-history":[{"count":0,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/3192\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=3192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=3192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=3192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}