Forums

WP-Cache and mclude (1 post)

  1. rogermh
    Member
    Posted 4 years ago #

    I have a random photo generator that I'd like to use in conjunction with WP-Cache. I've inserted the following code per the WP-Cache documentation:

    <!--mclude shuffle.php-->
    <?php include_once(ABSPATH . 'shuffle.php'); ?>
    <!--/mclude-->

    The shuffle.php file generates the html for the random photos. The problem is that WP-Cache still caches the photos. Thus, even on a refresh, the same photos are presented (not dynamic). Everything works as expected when WP-Cache is disabled (random photos are properly generated).

    Any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic