WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Cache Preload Fixes and Feature Enhancements (38 posts)

  1. wmiles
    Member
    Posted 2 years ago #

    Hello everyone,

    Over the last month or so I have taken time to investigate what was happening with W3TC cache preload for version 0.9.2.4. I have documented my work, but there is far too much to include here, so please look at http://www.wmiles.com/2012/03/w3tc-cache-preload for a full description of my results.

    I hope some of this will be helpful. W3TC is a useful plugin.

    In a nutshell, I discovered that W3TC Total Cache release version 0.9.2.4 has four faults in the cache preload function that prevent successful operation of this feature. My post provides code corrections for these faults. I also show a fix for another fault with URL redirection for cache prime requests that can lead to a 'too many redirects' error.

    I have also proposed new features to ensure that pages are primed only when required; I have included an enhancement for visible monitoring and tracing cache preload activities; and I show how to enable different cache retention times depending on the page URL.

    The fixes that I propose apply to both basic mode and enhanced mode disk caching. I have tested basic mode disk caching, but I have only performed a cursory validation that the fixes will work for enhanced mode caching. As with any suggestions, I would hope that this work be reviewed by those who develop W3TC.

    Briefly, my document has 4 pages.

    Page 1. Describes the known faults or bugs in W3TC Total Cache version 0.9.2.4 preload function. See http://www.wmiles.com/2012/03/w3tc-cache-preload.

    Page 2. Describes a feature enhancement to enable setting of specific page cache expiry times. See http://www.wmiles.com/2012/03/w3tc-cache-preload/2.

    Page 3. Describes a feature enhancement to allow administrator control and monitoring of prime activities. See http://www.wmiles.com/2012/03/w3tc-cache-preload/3.

    Page 4. Describes a feature enhancement to prime only uncached and valid pages. This improves cache prime performance. See http://www.wmiles.com/2012/03/w3tc-cache-preload/4.

    Again, I hope some of this will be helpful. And, I am pleased to contribute to this plugin. :)

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. astrasuite
    Member
    Posted 2 years ago #

    Great !

  3. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks @wmiles, will check them out.

  4. rajupp
    Member
    Posted 2 years ago #

    any official take on this Frederick?

  5. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    All of those faults are fixed in the next release except handling redirection (which was deliberately omitted). The feature enhancements were all in the roadmap already, but I appreciate the contributions, well done.

  6. rwtadmin
    Member
    Posted 1 year ago #

    When is the next release expected? It would be great to get a quick fix integrated to take care of the pre-loading bug.

    I'd rather get that fixed right away and wait for all the goodies a little further down the road.

  7. rajupp
    Member
    Posted 1 year ago #

    When can we expect the next release Frederick? I'm sure you have lots of new features and bug fixes in store for us!

  8. Henk Jan
    Member
    Posted 1 year ago #

    @Frederick: any outlook on when version 0.9.2.5 will be released /out of beta?

  9. duda
    Member
    Posted 1 year ago #

    In todays version the problem still persist.

  10. sLa NGjI's
    Member
    Posted 1 year ago #

    0.9.2.5 versione release is only simply security fix: all problems discovered on 0.9.2.4 version is the same and unfixed ... Nothing, for now, was fixed!

  11. kymvan
    Member
    Posted 1 year ago #

    Cache preloading is NOT fixed in 0.9.2.5. I've got 100 websites that will need to be fixed manually when I upgrade to this version.

    Is there going to be another new release soon fixing this problem? I know it's fixed in the development version, but when will it be corrected in the latest version?

  12. sLa NGjI's
    Member
    Posted 1 year ago #

    @kymvan

    0.9.2.5 versione release is only, and simply, the same of 0.9.2.4 + security fix: all problems discovered on 0.9.2.4 version is the same and unfixed on 0.9.2.5 ... Development version 2011-08-31 was substituted with 0.9.2.5 ... Nothing, for now, was fixed!

  13. wmiles
    Member
    Posted 1 year ago #

    You folks are actually using my cache fixes? Hmmm, how would anyone know?

    So, I took a moment to integrate my cache feature fixes into the 0.9.2.5 release. The integration was easy, the code hasn't changed, but there are other problems with 0.9.2.5. Basic mode disk caching no longer works with 0.9.2.5.

    Part of the security fix code has been put in the wrong place. For basic disk caching, the cached page is being prefixed with a nine byte '<?php /*' text string. But this is inserted before the page expiry time and compressed page data is written. What this means is that the page expiry time is never picked up successfully when the cache page is referenced, so the page is always thought to be expired. Cached disk pages are never returned.

    I have posted an update on my blog. A version 0.9.2.5 file is available that includes my cache prime enhancements and this code fix. Can someone let Frederick know about this? Leave a comment if you are so inclined.

    http://www.wmiles.com

  14. sLa NGjI's
    Member
    Posted 1 year ago #

    @wmiles

    Your "cache prime enhancements" 0.9.2.4 and 0.9.2.5 re-build version, is based on ex official development version 2011-08-31 of W3 Total Cache?

    P.S. Please, indicate me the based version for your enanchements ...

  15. astrasuite
    Member
    Posted 1 year ago #

    @wmiles, yes we do use it for some time already :-)

    Excellent work ...

  16. RobertKn
    Member
    Posted 1 year ago #

    I loadet wmiles version to my site ( http://www.toseco.at )this morning.

    Till now it works very nice and it seems to be a bit faster.

    I vote for include the enhancements in the official version.

  17. wp-fan
    Member
    Posted 1 year ago #

    @wmiles:
    I am indeed using your version on http://www.organisationsberatung.net

    Thanks for the update.

    @Frederick:
    Desperately wating for your official version with the mentioned enhancements. W3C Total Cache for me is a "must have" plugin!

    Kind regards,

    wp-fan

  18. wmiles
    Member
    Posted 1 year ago #

    @sLaNGjI's

    My "cache prime enhancements" are applied to the 0.9.2.4 and 0.9.2.5 code as released on WordPress.org.

    @Everyone

    I have posted an update to my work. See here.

  19. sLa NGjI's
    Member
    Posted 1 year ago #

    @wmiles

    Trace Resource Publicly, accessible from your site URL, expose WordPress installation to security hole? :)

    P.S. Official W3 Total Cache 0.9.2.5b Development Version 2011-08-31 include more enhancements not present on 0.9.2.4 and 0.9.2.5 official release ... ;)

  20. wp-fan
    Member
    Posted 1 year ago #

    From the description of wmiles updated 0.9.2.5 fork:

    Cache priming will now generate a new cached page before a previously cached page expires. Previously, pages were not refreshed until after they had expired. This change can reduce the probability that an uncached page reference occurs. Pages may now be generated within two update intervals before expected expiry.

    @wmiles:
    Phantastic work. I have been waiting for this feature.
    Could you make sure this will be added to the official version later on? Are you at all in contact with Frederick Townes?

    Kind regards,

    wp-fan

  21. sLa NGjI's
    Member
    Posted 1 year ago #

    In my opinion, Frederick Townes knows, but it will never allow this and other corrections ...

  22. wp-fan
    Member
    Posted 1 year ago #

    @sLaNGjI's
    Why don't you think so? Does it collide with the philosophy of the original version, and if so, why?

    Please enlighten us...

  23. palPalani
    Member
    Posted 1 year ago #

    Official version of W3 Total Cache 0.9.2.5 is released, is that patched version also updated?

  24. wp-fan
    Member
    Posted 1 year ago #

    @palPalani:

    Yes, it is. See the link in my posting above.
    Works excellent!

  25. palPalani
    Member
    Posted 1 year ago #

    Thanks @wp-fan for updating the status.

    Because of the above issues, WP Cron is not working for long time for all my websites. Thanks for great work.

  26. palPalani
    Member
    Posted 1 year ago #

    W3 Total Cache 0.9.2.5 fork was worked very well, today updated to official W3 Total Cache 0.9.2.6 version. Now site not working!!!

  27. wp-fan
    Member
    Posted 1 year ago #

    I have not upgraded myself and will not do so. Comments in this forum hint to severe issues that need to be fixed before I will personally upgrade.

    I do agree that the 0.9.2.5 fork from wmiles is the best version released so far. I will not put my website speed at risk with a faulty "official" update.

    I have emailed wmiles if he will release an enhanced version based on 0.9.2.6, but have not received any answer yet.

  28. ahmedeqbal
    Member
    Posted 1 year ago #

    @Frederick Townes,

    I'm using netDNA CDN on my webblog, i've one question about your latest update.

    Path: Performance -> CDN -> Configuration

    you've added one filed "Alias: " ? Please let me know about it, its mean website Main url or netDNA url like "domain.netdna-cdn.com" ?

    thanks

  29. sLa NGjI's
    Member
    Posted 1 year ago #

    wp-fan wrote:

    @sLaNGjI's
    Why don't you think so? Does it collide with the philosophy of the original version, and if so, why?

    Please enlighten us...

    @wp-fan

    W3 Total Cache 0.9.2.6 is official release, (not 1.0 Pothi Remember? :lol) and no any wmiles forked version modifications was included on it!

    In my opinion, Frederick Townes knows, but it will never allow this and other corrections ...

    :)

  30. Frederick Townes
    Member
    Plugin Author

    Posted 1 year ago #

    The suggestions look great, unfortunately as with WordPress core itself, they cannot simply be added as a patch because there's a roadmap and the rest of the framework to consider. All of the points raised were already in the roadmap and the contributions here have simply moved them up the queue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic