WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Fragment Caching: it disables the cache! Help!! (6 posts)

  1. Galerio
    Member
    Posted 2 years ago #

    Hi,
    I need to load dynamically a php function and I use the Fragment Caching tag. For example:
    my php function that is in single.php:
    <?php if(function_exists('show_w')) { show_w('word'); } ?>
    but if the page is cached, the function become plain html.

    So I have tryed the Fragmented Cache method described in the FAQ of W3TC and my code is now:
    <!-- mfunc if(function_exists('show_w')) { show_w('word'); } --><!-- /mfunc -->

    The code works, but no page is cached!!! I can't see any html on the w3tc/pgcache folder!

    What can I do?

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

  2. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    What makes you say that the page is not cached?

  3. Galerio
    Member
    Posted 2 years ago #

    because there are no cached files into cache directory. Only pages witout mfunc tag are cached.

  4. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    What page caching method are you using?

  5. Galerio
    Member
    Posted 2 years ago #

    Disk Cache Advanced

  6. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    This functionality will be improved in an upcoming release. Meanwhile I recommend caching to memcached, opcode cache or disk basic (if your site is low traffic).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic