Support » Plugin: WP Super Cache » [Plugin: WP Super Cache] Not to cache a given area

Viewing 3 replies - 1 through 3 (of 3 total)
  • You could use <!–dynamic-cached-content–>…<!–/dynamic-cached-content–>

    See the FAQ

    You will also need to use the option “Use PHP to serve cache files.”

    I would think this will negatively affect performance pretty dramatically. A better choice would be to use javascript to do whatever ‘dynamic’ things you are putting in your header and footer. The javascript will be cached, but if the javascript gets data from another resource and embeds it (ajax) then you still have dynamic content.

    Yes, I already trying with this tags, but has not worked.
    How is it that I should put it?

    Javascript? … Could you explain a little better please, or to leave a link or something?

    Thank you very much for the help.

    to test using the dynamic-cached-content tag, you’d do something like this in header.php:

    <!--dynamic-cached-content--><?php echo time(); ?><!--
    seconds since unix epoch

    NOTE: there are no spaces between the HTML comments and <?php and ?> tags. The docs say this is important.

    The other way is javascript. For example, in header.php, I might have

    <script src="<?php bloginfo('template_directory'); ?>/dynamic.js">

    and in dynamic.js I might have:

    alert('hello from javascript. it\'s ' + (new Date()));

    this is just a simple example. You can manipulate a page a lot with javascript, so you can hav fun inserting dynamic content anywhere you like. If you have not learned javascript and jQuery, start looking into it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Super Cache] Not to cache a given area’ is closed to new replies.