Support » Plugins » W3 Total Cache – three questions

  • nonenoknow


    Hi there,

    I am a bit of a newby, so excuse my “everyday language” when it comes to the problems/issues. I am using W3 Total Cache and thus far it works fine.

    1) However, I am not getting the part of “fragmented caching”. I want one single widget, called “TimeZoneCalculator” (v 2.44 – JavaScript) to not get cached, as it will show the times delayed then. But where exactly do I have to put the <!– mfunc any PHP code –><!– /mfunc –> code? Does it at all work with JS?

    2) Only my front page gets gzip compression, no other pages? Why?

    3) I want one category in my blog (namely “News”) not to get cached at all, as my news are coming in on a ad-hoc (minute) basis. How to achieve this?

    Thanks a lot

Viewing 3 replies - 1 through 3 (of 3 total)
  • slith


    From what I understand.

    1) If by “widget” you are referring to a WordPress widget, you cant do this. With page caching the wordpress engine is totally bypassed.

    However, if you can modify the widget code, you can do something like this:

    <!-- mfunc echo "This is the time not cached " . time(); --><?php echo "This is the time cached" . time(); ?><!-- /mfunc -->

    More info:


    You can do something like this in your functions.php

    add_action('wp_head', 'define_if_page_cache');
    function define_if_page_cache() {
        if (is_category("News")) {
            define('DONOTCACHEPAGE', true);


    Hi slith,

    thanks for your resoponse. Plugin deleted, as without being able to not cache specific parts of the the site, like widgets, it makes absolutely no sense for me.




    You can tell it to not cache a section of the site, just not if the widget needs to be not cached and needs the wordpress engine loaded.

    You can still always use Object & SQL cacheing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘W3 Total Cache – three questions’ is closed to new replies.