[Plugin: WP Super Cache] Cache Files Not Being Served – (My version of this issue)
-
I know this issue is a tiresome topic to read yet again but until there is a solution to this problem people will continue to ask about it, like me.
From 4pm yesterday afternoon til now 845am the next morning I have been doing nothing but reading forum posts and trying various things to solve this issue. I have read completely over 115 threads on this topic and nearly all of them get abandoned/ignored and remain unresolved.
This is an email I sent Donncha last night:
(start of email)
===========================================Hello from Mesa Arizona, USA =)
First of all, Thank you Donncha for making and supporting this plugin and for all your time invested in doing so. I apologize for such a long email but I want you to have all the information I can offer to help you come up with an answer for me.
I have spent several hours trying to figure out what I am doing wrong. I have spent that time searching and reading the forum posts for your plugin looking for a solution and although there are many posts in the forums about this I have yet to see an actual answer on how to fix this issue.
I see many forum threads by many people saying that the plugin is not serving cached pages and I am having that issue too but I have not seen any official response or answer regarding what to do to fix it.
I get these messages at the bottom of my pages when viewing the source code:
`<!– Dynamic page generated in 0.445 seconds. –>
<!– Cached page generated by WP-Super-Cache on 2009-09-19 16:40:04 –>`I never get this message:
<!-- Cached page served by WP-Super-Cache -->
I have tried using different browsers:
- WindowsLive (aka IE),
- Firefox,
- Chrome (by Google)
- Flock
I have tried each scenario:
- I tried while logged in;
- I tried while logged out;
- I tried with deleted cookies and temp files deleted.
I have no clue what I am doing wrong.
I have tried with Bad Behavior installed and enabled support for it in WP Super Cache
I have tried it without Bad Behavior.
In fact I installed Bad Behavior for the first time today so my problem with cached pages not being served existed before I ever installed Bad Behavior in the first place.Can you shine any light on this issue?
I have permalinks enabled as
/%postname%/
I have “Don’t cache pages for logged in users.” [checked]
When I do not use Bad Behavior:
I have “ON WP Cache and Super Cache enabled” [checked]
When I do use Bad Behavior:
I have “HALF ON Super Cache Disabled, only legacy WP-Cache caching.” [checked]
I have “Bad Behaviour support is enabled.” [yes]
I have “Expiry Time & Garbage Collection” as the default 3600 seconds
I have the default settings for “Accepted Filenames & Rejected URIs” meaning:
the top 7 checkboxes are [unchecked]
and wp-.*\.php and index\.php for the 1st box
and wp-comments-popup.php and wp-links-opml.php and wp-locations.php for the second box
My .htaccess file in the C:\xampp\htdocs\wordpress\wp-content\cache folder has this in it:# BEGIN supercache <IfModule mod_mime.c> <FilesMatch "\.html\.gz$"> ForceType text/html FileETag None </FilesMatch> 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
My .htaccess file in the C:\xampp\htdocs\ folder has this in it:
<files wp-config.php> Order deny,allow deny from all </files> Options All -Indexes RewriteEngine On RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} .wp-comments-post\.php* RewriteCond %{HTTP_REFERER} !.*makaz.kicks-ass.net.* [OR] RewriteCond %{HTTP_USER_AGENT} ^$ RewriteRule (.*) ^https://%{REMOTE_ADDR}/$ [R=301,L] # BEGIN WPSuperCache <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / AddDefaultCharset UTF-8 RewriteCond %{REQUEST_URI} !^.*[^/]$ RewriteCond %{REQUEST_URI} !^.*//.*$ RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$ RewriteCond %{HTTP_user_agent} !^.*(Android|2.0\ MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).* RewriteCond %{HTTP:Accept-Encoding} gzip RewriteCond %{DOCUMENT_ROOT}/wordpress/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f RewriteRule ^(.*) /wordpress/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L] RewriteCond %{REQUEST_URI} !^.*[^/]$ RewriteCond %{REQUEST_URI} !^.*//.*$ RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$ RewriteCond %{HTTP_user_agent} !^.*(Android|2.0\ MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).* RewriteCond %{DOCUMENT_ROOT}/wordpress/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f RewriteRule ^(.*) /wordpress/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L] </IfModule> # END WPSuperCache # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
NOTE: That section in orange up above was added for the IntenseDebate plugin. We weren’t told in the instructions where to put that code but since you said to put WPSUperCache above the WordPress stuff, I assumed I should put the IntenseDebate above the WordPress stuff also.
Anyhow, I visited all the pages in my small website/blog so the cached files were created. https://makaz.kicks-ass.net/blog/
NOTE: I host my own server and since my blog is new and doesn’t get much traffic I occassionally shut down my system when I sleep at night. So if you cannot access my server if you try looking, that is why.
I checked several (not all) of the actual cached files:
The ones in the C:\xampp\htdocs\wordpress\wp-content\cache\supercache… folders all of these files are called index.html and they all say this at the bottom:
<!-- Dynamic page generated in 0.378 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2009-09-19 17:05:39 --> <!-- super cache -->
The ones in the C:\xampp\htdocs\wordpress\wp-content\cache folder all have names like
wp-cache-2af64d30b7d128c063e2b15d474ac093.html and they all say this at the bottom:<!-- Dynamic page generated in 0.731 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2009-09-19 18:36:14 -->
But again no matter what browser I am using and no matter if I am logged in or not I never see this message:
<!-- Cached page served by WP-Super-Cache -->
What am I doing wrong please? Thanks for your help and I look forward to a reply when you have time to do so.
Regards,
MAK
=======================================
(end of email)
- The topic ‘[Plugin: WP Super Cache] Cache Files Not Being Served – (My version of this issue)’ is closed to new replies.