WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[BUG] Disk Enhanced cache doesn't work in 0.9.2.4 (28 posts)

  1. Galerio
    Member
    Posted 2 years ago #

    After upgrading to 0.9.2.4 thepage cache with disk enhanced mode stops to work. Also with developer version.

    <!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/
    
    Minified using disk: basic
    
    Served from: x.com @ 2011-09-02 06:21:50 -->
    
    <!-- W3 Total Cache: Page cache debug info:
    Engine:             disk: enhanced
    Cache key:          mozilla-firefox-6-0-1-final-28422.html/_index.html_gzip
    Caching:            enabled
    Status:             not cached
    Creation Time:      0.958s
    Header info:
    X-Pingback:         http://x.com/xmlrpc.php
    Content-Type:       text/html; charset=UTF-8
    Link:               <http://x.com/?p=28422>; rel=shortlink
    Last-Modified:      Fri, 02 Sep 2011 06:21:50 GMT
    Vary:               Accept-Encoding, Cookie
    Expires:            Tue, 06 Sep 2011 10:21:50 GMT
    Pragma:             public
    Cache-Control:      public, must-revalidate, proxy-revalidate
    Etag:               2e497b7dfa045eebf0f3020fcf94c1b7
    X-Powered-By:       W3 Total Cache/0.9.2.5b
    Content-Encoding:   gzip
    -->

    I can see the file "mozilla-firefox-6-0-1-final-28422.html/_index.html" but not the gzipped one "mozilla-firefox-6-0-1-final-28422.html/_index.html_gzip" in my pgcache folder.

    So I have tryed to disable Browser Cache compressione (Enable HTTP (gzip) compression).
    Here is the result:

    <!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/
    
    Minified using disk: basic
    
    Served from: x.com @ 2011-09-02 06:21:50 -->

    As you can see, the debug info about page cache aren't there. It is like Page Cache is disabled at all.

    The only thing I can do is to enable the Page Cache with Disk Basic mode.

    Try yourself.

    Please, help. I need the Disk Enhanced!!

  2. Galerio
    Member
    Posted 2 years ago #

    The same thing happens also in my other 5 blogs, one of them uses the trailing slash in permalink structure, so the error is not due to trailing slash.

    I think this is a serious bug.

  3. Galerio
    Member
    Posted 2 years ago #

    I've just tryed on a VMware local test machine and I get the same error: Disc cache enhanced doesn't work. I always get a "Status: not cached" for every page without any reason.

    Please Frederick Townes, look into this.

  4. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

  5. Galerio
    Member
    Posted 2 years ago #

    Thanks, but nothing to do.
    I tryed on a test server with only W3TC actived, nothing else.
    With or whithout the option "cache requests only for same hostname" gives the same result: status not cached (but without any reason).

    The other option "cache URIs with query string variables" is not activable when I use Disc Enhanced.

    Tryed with various option for permalink structure, but nothing.

  6. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    Can you please try the development version? Also query strings cannot be cached in disk enhanced due to limitations with web servers, it's not a W3TC limitation.

  7. joem5656
    Member
    Posted 2 years ago #

    Yeah, I can confirm that the problem isn't the any-hostname option. I set W3TC when updated to 924 to cache everything, no matter what url the request is.

  8. Galerio
    Member
    Posted 2 years ago #

    I have already tryed thedevelopment version, and my site doesn't have query string and as I already said, I have tried with various permalink structure, with trailing slash, with .html, without trailing slash.... all the same.
    The page uncompressed is created in cache folder, but the gzipped one no. So no page cached is serverd. And if I unselect the "compress page" option, the disc cache stops to work at all.

  9. Galerio
    Member
    Posted 2 years ago #

    Look at my first post: X-Powered-By: W3 Total Cache/0.9.2.5b

    I have 5 blogs on 3 different servers and I have the same problem. I have tryed also with all plugins disabled, all but W3TC.

  10. robnalexpress
    Member
    Posted 2 years ago #

    @galerio- FWIW, I'm running 0.9.2.5b on one site and 0.9.2.4 on 2 others (multisite with domain mapping)and I have the following files for every page & post on every site:

    _.index.html and _.index.html_gzip

    But page cache debug still reads "status: not cached".

  11. Stas Su?cov
    Member
    Posted 2 years ago #

    Could you disable the Debug flag?
    It looks like W3TC caches the request you queried, but it serves you the version with the debugging details.

    I'm on w3tc trunk with 3.2.1

  12. Galerio
    Member
    Posted 2 years ago #

    Success!
    I've tried on one of my blogs and disabling the debug mode now it writes the plain html file and the gzipped one.

    I'm goning to try on the other servers.

    But, how can I know that the cache is ok if I can't use debug?

  13. robnalexpress
    Member
    Posted 2 years ago #

    @Stas Suscov-

    Could you disable the Debug flag?

    What do you mean?

  14. Stas Su?cov
    Member
    Posted 2 years ago #

    @robnalexpress
    http://i.imgur.com/VX2Bz.png

    @galerio
    Cached pages with no debug generate a message like this:
    http://i.imgur.com/WU7da.png

  15. Galerio
    Member
    Posted 2 years ago #

    @Stas Sucov
    if you are logged in, you'll neve see cached page untile you disable the option to not serve cached page for admin and logged users.
    Use another browser that you never use to log into your wp

  16. Stas Su?cov
    Member
    Posted 2 years ago #

    The second image was taken using Chrome incognito mode.

  17. robnalexpress
    Member
    Posted 2 years ago #

    Could you disable the Debug flag?

    well...yea- it's always disabled when I'm not checking it. What's your point?

    Cached pages with no debug generate a message like this:
    http://i.imgur.com/WU7da.png

    Well, yea- so are you suggesting that just because I see "Page Caching using disk: enhanced" that the page is cached? I don't think so....

  18. Stas Su?cov
    Member
    Posted 2 years ago #

    @robnalexpress your attitude is hard to explain.
    You are free to ignore my or other user posts if you feel they are useless.

    My point is described above:
    It looks like W3TC caches the request you queried, but it serves you the version with the debugging details.

  19. robnalexpress
    Member
    Posted 2 years ago #

    @Stas Suscov- Sorry- no 'attitude' was intended- just trying to understand your point. So you're saying it looks like W3TC is NOT serving cached pages?

  20. jainsandeep11
    Member
    Posted 2 years ago #

    I have been facing the same problem as @galerio. When I enable the browser compression, the compressed files are not generated. After disabling the compression, debug info doesn't show up. But I am sure that the caching works without compression as I manually modified cached files in pgcache and the changes were reflected when I opened modified files in browser.

    Could anybody please suggest how to make the compression work?

  21. Galerio
    Member
    Posted 2 years ago #

    Do this test:
    disable all debug.
    Enable the compression.
    Browse some page.
    Look for that page in cache folder.
    If the gzipped page exists, download it, uncrompress it, modify it and re-gzip it.
    Or simply add some dynamic function to a page, for example this one to count in how many seconds the page is loaded:
    <?php timer_stop(1); ?>
    Put it in the footer. If the page will load always with the same number of seconds, then it is a page from the cache.

    What I understood is that when you enable page debug, the disc enanched cache stops to work.

    Now that I have disabled all debugs I'm living happy.

  22. boborg
    Member
    Posted 2 years ago #

    Yes debug also had me fooled it was not working

  23. jmyette
    Member
    Posted 2 years ago #

    I also had a problem with "Disk: Enhanced" page cache: only my home page was cached. I also had the following error message at the top of W3TC settings page: "It appears Page cache URL rewriting is not working".

    In my case the solution has been to fix my main .htaccess file in order for W3TC rules to be before WordPress rules.

    By the way, I noticed that using the page cache debug mode invalidates the cached pages when downloaded from my browser, but not when downloaded with wget.

  24. itshouldjustwork
    Member
    Posted 1 year ago #

    How is this issue marked [resolved] ??

    This is still happening on fresh installs.

    It appears Page Cache URL rewriting is not working. If using apache, verify that the server configuration allows .htaccess or if using nginx verify all configuration files are included in the configuration.

    Fresh install on WP 3.4.1

  25. Galerio
    Member
    Posted 1 year ago #

    @itshouldjustwork it appears you have a different issue related to your htaccess rewrite rules, so it is OT and you should open a new thread.

  26. phirefly
    Member
    Posted 1 year ago #

    It appears Page Cache URL rewriting is not working. If using apache, verify that the server configuration allows .htaccess or if using nginx verify all configuration files are included in the configuration.

    Fresh install; happening here too

  27. Galerio
    Member
    Posted 1 year ago #

    @phirefly you are OT, here we are discussing about page caching when debug mode is enabled, not about the URL Rewriting rules.
    Open a new thread because you'll nevere receive answer here.

  28. Frederick Townes
    Member
    Plugin Author

    Posted 1 year ago #

    The status:not cached was a false positive so its been removed for Disc Enhanced debug output. Disc Enhanced generates gzipped files properly. The thread is already addressed since @galerio figured out that he could not use debug with disc enhanced. @jainsandeep11 could have server without gzip support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic