We help IT Professionals succeed at work.

How to fix cache disable problem after installing  w3 total cache plugin?

Nura111
Nura111 used Ask the Experts™
on
I I installed w3 total cache on my website I enabled page cache and browser cache and the the debug option so I can see the output in the end of the html source code

and the output is: Caching:            disabled

Reject reason:      Requested URI contains query

the all output is below:





Served from: nurit.chicagonewshub.com @ 2011-08-05 20:34:18 -->



<!-- W3 Total Cache: Page cache debug info:

Engine:             disk (enhanced)

Cache key:          _index.html

Caching:            disabled

Reject reason:      User is logged in

Status:             not cached

Creation Time:      1.206s

Header info:

X-Pingback:         http://nurit.chicagonewshub.com/xmlrpc.php

Expires:            Wed, 11 Jan 1984 05:00:00 GMT

Last-Modified:      Fri, 05 Aug 2011 20:34:17 GMT

Cache-Control:      no-cache, must-revalidate, max-age=0

Pragma:             no-cache

Content-Type:       text/html; charset=UTF-8

X-Powered-By:       W3 Total Cache/0.9.2.3


Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
Caching only works for static unchanging content like plain HTML pages and images.  URL with query strings maybe returning posts from your database and the cache module has no way of knowing whether the database info has changed so it does not cache that page.  When you're logged in and POSTing new info, those pages should not be cached either because they also can contain changed info.

Author

Commented:
sorry I post the wrong results I meant:

Served from: nurit.chicagonewshub.com @ 2011-08-08 20:06:33 -->



<!-- W3 Total Cache: Page cache debug info:

Engine:             disk (enhanced)

Cache key:          _index.html

Caching:            disabled

Reject reason:      Requested URI has a trailing slash

Status:             not cached

Creation Time:      2.446s

Header info:

X-Pingback:         http://nurit.chicagonewshub.com/xmlrpc.php

Content-Type:       text/html; charset=UTF-8

X-Powered-By:       W3 Total Cache/0.9.2.3

Author

Commented:
Also attches is the compatibility Test:

Legend:
Installed: Functionality will work properly
Not detected: May be installed, but cannot be automatically confirmed
Ok: Current value is acceptable.
Yes/No: The value was successful detected.

Server modules and resources:
Plugin Version: 0.9.2.3
PHP Version: 5.2.17 (PHP5 required for Minify, Rackspace CloudFiles, Microsoft Azure support)
Web Server: Apache
FTP functions: Installed (required for Self-hosted (FTP) CDN support)
Multibyte String support: Installed (required for Rackspace Cloud Files support)
cURL extension: Installed (required for Amazon S3, Amazon CloudFront, Rackspace CloudFiles support)
zlib extension: Installed (required for compression support)
Opcode cache: Not installed
Memcache extension: Not installed
HTML Tidy extension: Installed (required for HTML Tidy minifier suppport)
Mime type detection: Installed (mime_content_type) (required for CDN support)
Hash function: Installed (hash) (required for NetDNA purge support)
Safe mode: Off
Open basedir: Off
zlib output compression: Off
mod_deflate: Not detected (required for Page Cache (enhanced mode) and Browser Cache)
mod_env: Not detected (required for Page Cache (enhanced mode) and Browser Cache)
mod_expires: Not detected (required for Page Cache (enhanced mode) and Browser Cache)
mod_headers: Not detected (required for Page Cache (enhanced mode) and Browser Cache)
mod_mime: Not detected (required for Page Cache (enhanced mode) and Browser Cache)
mod_rewrite: Not detected (required for Page Cache (enhanced mode) and Browser Cache)
mod_setenvif: Not detected (required for Page Cache (enhanced mode) and Browser Cache)
WordPress Resources

/.htaccess: OK
/wp-content: OK
/t/wp-content/uploads/2011/08: OK
Fancy permalinks: /archives/%post_id%
WP_CACHE define: Defined (true)
URL rewrite: Enabled
Network mode: No
Fixer of Problems
Most Valuable Expert 2014
Commented:
"Requested URI has a trailing slash"  URLs like "http://www.mysite.com/" are automatically redirected to the default document which is usually 'index.php' in Wordpress.  But it doesn't have to be and your cache module can not know if it is something else.  Those URLs aren't cached any where because of that.

It looks to me like your cache module is working properly though it may not work the way you thought it was going to.

Author

Commented:
The problem is that I'm pretty compused with how would I know if its working and I enabled only page cache and browser cache to start see what happen and I got this output form the debug mode that saying that that caching is disables. also even that I did chose the set expiration option in the compatibility Test  the results are:


mod_deflate: Not detected (required for Page Cache (enhanced mode) and Browser Cache)
mod_env: Not detected (required for Page Cache (enhanced mode) and Browser Cache)
mod_expires: Not detected (required for Page Cache (enhanced mode) and Browser Cache)
mod_headers: Not detected (required for Page Cache (enhanced mode) and Browser Cache)
mod_mime: Not detected (required for Page Cache (enhanced mode) and Browser Cache)
mod_rewrite: Not detected (required for Page Cache (enhanced mode) and Browser Cache)


what are you seeing in  cache module that indicate that it work properly?
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
All the pages that you have shown to be disabled Should be disabled, they should Not be cached.  Many things should not be cached and that's what it is showing you.  I'm not sure about the 'mod's except that if 'mod_rewrite' was not installed and working, you would be having other problems with Wordpress.

Author

Commented:
Im still not sure about how W3 total cache plugin works
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
Like I said, it works mostly on static content like any caching.  If you read here http://wordpress.org/extend/plugins/w3-total-cache/faq/ , you will see that it has features that can benefit large sites by using CDN.  CDN, Content Delivery Networks, are subscription services that you have to pay for.  You also would need to go thru all of the steps involved in adapting your site including thing like running javascript and CSS files thru their 'minifyer'.

Though it is a 'plugin', it is not necessary an instant benefit.