Forums

[Plugin: WP Super Cache] WP-Super-Cache and mfunc / mclude Tags (3 posts)

  1. smarx80
    Member
    Posted 4 years ago #

    I'm trying to make some parts of my home page dynamic but
    unfortunately mfunc / mclude tags only work properly if the
    page isn't delivered by the supercache.

    Below is the code I've inserted into my index.php:

    <!--mfunc show_vetrina()-->show_vetrina()<!--/mfunc-->

    The problem is visible if the page is served by supercache; the
    php code in this case isn't executed...

    What I'm mistaking??

    Thanks,
    Simone.

  2. PaulMyatt
    Member
    Posted 3 years ago #

    That should be:

    <!--mfunc show_vetrina()-->
    <?php show_vetrina(); ?>
    <!--/mfunc-->
  3. Donncha O Caoimh
    Member
    Posted 3 years ago #

    No PHP code is executed when a page is statically cached. That's the whole point of the super cache :)

    You should change it so it uses Javascript instead.

Topic Closed

This topic has been closed to new replies.

About this Topic