Title: [Plugin: W3 Total Cache] Cache not working? According the debug
Last modified: August 20, 2016

---

# [Plugin: W3 Total Cache] Cache not working? According the debug

 *  [noisegate95](https://wordpress.org/support/users/noisegate95/)
 * (@noisegate95)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/)
 * I just turned up debugging to finalize a re-install of the plugin. [http://blog.noisegate95.com](http://blog.noisegate95.com).
   Been having problems with page load times at all the page speed shops. Low and
   behold, the info is coming up, on every page, after clearing cookies, cache etc.
   Anyone help out with this one? I kept debugging on. Thank you.
 * <!– W3 Total Cache: Page cache debug info:
 * Engine: disk: enhanced
 * Cache key: _index.html
 * Caching: disabled
 * Reject reason: DONOTCACHEPAGE constant is defined
 * Status: not cached
 * Creation Time: 7.967s
 * Header info:
 * Expires: Thu, 19 Nov 1981 08:52:00 GMT
 * Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
 * Pragma: no-cache
 * X-CF-Powered-By: WP 1.2.1
 * X-Pingback: [http://blog.noisegate95.com/xmlrpc.php](http://blog.noisegate95.com/xmlrpc.php)
 * X-Powered-By: W3 Total Cache/0.9.2.4
 * Content-type: text/html; charset=UTF-8
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Thread Starter [noisegate95](https://wordpress.org/support/users/noisegate95/)
 * (@noisegate95)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656137)
 * Well it seems that I had the DONOTCACHEPAGE directive in my sidebar.php file 
   thinking it was just for sidebar – this according to another site. I didn’t want
   to cache my sidebar dynamic content. However that did not fix the problem.
 * After disabling all plugins in random order, i chose to move to page cache disk
   basic rather than enhanced. Once I did that, the first byte was much shorter.
   Not what it used to be, but much better.
 * Does anyone know why this is?
 *  Thread Starter [noisegate95](https://wordpress.org/support/users/noisegate95/)
 * (@noisegate95)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656364)
 * I still would like to disable caching on my sidebar. I read the faq about fragment
   caching, but where in the world do I place that code?
 *  Thread Starter [noisegate95](https://wordpress.org/support/users/noisegate95/)
 * (@noisegate95)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656397)
 * I really cannot be the only one asking this same question. My sidebar is full
   of dynamic content. I do not want it cached. [http://blog.noisegate95.com](http://blog.noisegate95.com)
 * Anyone?
 *  [azn137](https://wordpress.org/support/users/azn137/)
 * (@azn137)
 * [14 years ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656473)
 * I wonder the same thing too. I have recent comments/posts, and twitter widget….
   they don’t work for jack with this plugin. I’ve tried inserting the following
   lines under “Never cache the following pages” in Page Cache option (no luck at
   all):
 * wp-.*\.php
    index\.php twitter.*\.php comments.*\.php widgets.*\.php sidebar.*\.
   php
 *  [haddow777](https://wordpress.org/support/users/haddow777/)
 * (@haddow777)
 * [14 years ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656474)
 * I have found that disk enhanced has never worked for me while using the debug
   output. I usually check to see if it is working by keeping an eye on my load 
   speed of the main html file and the contents of the wp-content/w3tc/pgcache/ 
   folder. If the speeds are fast and the folder has content, then it is working.
 * I haven’t worked with fragment caching yet, so take this with a grain of salt.
   According to my understanding, the sidebar could be seperated from the cache 
   this way.
 *     ```
       <!-- mfunc
       get_sidebar();
       -->
       <!-- /mfunc -->
       ```
   
 * According to what I have seen, this function call doesn’t need to be surrounded
   by “<?php ?>”, but I could be wrong. Try it that way first, if it doesn’t work,
   then surround it with the php tags.
 *  [Stergos](https://wordpress.org/support/users/stergos/)
 * (@stergos)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656480)
 * Nope it’s not working. I am using “disk enhanced” I tried the follow but without
   success.
 * <!– mfunc –>get_sidebar();<!– /mfunc –>
 * <!– mfunc get_sidebar(); –><!– /mfunc –>
 * <?<!– mfunc get_sidebar(); –><!– /mfunc –>?>
 * <!– mfunc <?php get_sidebar(); ?> –><!– /mfunc –>
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656496)
 * For now, fragment caching doesn’t work with Disc Enhanced. Will have to use other
   cache engine inorder to use that.
 * To use mfunc <!– mfunc –>get_sidebar();<!– /mfunc –> should work. Use with browser
   cache and a short value in HTML & XML header lifetime for best result.
 *  Thread Starter [noisegate95](https://wordpress.org/support/users/noisegate95/)
 * (@noisegate95)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656498)
 * Thanks for the reply Frederick. It’s been a while since I posted this – where
   exactly are you supposed to place that code? My original question…
 *  [azn137](https://wordpress.org/support/users/azn137/)
 * (@azn137)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656499)
 * [@noisegate95](https://wordpress.org/support/users/noisegate95/): you place that
   code wherever your get_sidebar() function call is. For example, mine is called
   in single.php, category.php, page.php, etc.
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656500)
 * Right.
 *  Thread Starter [noisegate95](https://wordpress.org/support/users/noisegate95/)
 * (@noisegate95)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656502)
 * So, I did a search and came up with two files – header and footer.php that call
   the sidebar. I replace the get_sidebar(); with `<!-- mfunc -->get_sidebar();<!--/
   mfunc -->` and my sidebar does not show up.
 * Maybe I’m doing something wrong? This shouldn’t be this difficult, should it?
   
   Original:
 *     ```
       /* Sidebar 2 on the right side? */
               if ( graphene_column_mode() == 'three_col_left' ){
                   get_sidebar( 'two' );
               }
   
       		/* Sidebar 1 on the right side? */
               if ( in_array( graphene_column_mode(), array( 'two_col_left', 'three_col_left', 'three_col_center' ) ) ){
                   get_sidebar();
               }
       ```
   
 * New:
 *     ```
       /* Sidebar 2 on the right side? */
               if ( graphene_column_mode() == 'three_col_left' ){
                   <!-- mfunc -->get_sidebar( 'two' );<!-- /mfunc -->
               }
   
       		/* Sidebar 1 on the right side? */
               if ( in_array( graphene_column_mode(), array( 'two_col_left', 'three_col_left', 'three_col_center' ) ) ){
                   <!-- mfunc -->get_sidebar();<!-- /mfunc -->
               }
       ```
   
 *  [Oliver Krautscheid (oliversk)](https://wordpress.org/support/users/soliver/)
 * (@soliver)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656504)
 * > For now, fragment caching doesn’t work with Disc Enhanced. Will have to use
   > other cache engine inorder to use that.
 * Frederick do you have any plans to support that in the future?
 * Or do you know a work around? I don’t want to use Javascript and I want to use
   disk enhanced
 * Is it possible to hire you for this? I will send in a support ticket

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘[Plugin: W3 Total Cache] Cache not working? According the debug’ is closed
to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 6 participants
 * Last reply from: [Oliver Krautscheid (oliversk)](https://wordpress.org/support/users/soliver/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-cache-not-working-according-the-debug/#post-2656504)
 * Status: not resolved