Don't Cache Sidebar – help with MFUNC
-
I’m running wordpress with w3TotalCache, i’m please with the results but I run dynamic widgets for “Recently viewed Items” and “Latest Ads” which need to remain dynamic (not cached). All of these widgets are in sidebars, so i con’t want to cache any sidebars.
I’ve read into “Fragment Caching” from W3TotalCache but I can’t get it to work / understand what to do.
I think i need to implement the following code:
<!– mfunc <?php get_sidebar() ?> –><!– /mfunc –>
in my themes index.php i’ve replaced this:
<?php get_sidebar() ?>
with this:
<!– mfunc <?php get_sidebar() ?> –><!– /mfunc –>
I’ve then cleared the cache but it stills caches the sidebars and prevents dynamic info.
Can anyone help please?
Thanks Chris
The topic ‘Don't Cache Sidebar – help with MFUNC’ is closed to new replies.