Problem with FireStats and WP-cache (4 posts)

  1. ahrenba
    Posted 8 years ago #

    I am running the FireStats and WP-cache plugins on my blog. My problem is that FireStats will only count a page hit if the page is not cached by WP-cache. Since my pages are often cached, it is not counting a lot of the hits. Is there a way to work around this?

  2. ahrenba
    Posted 8 years ago #

    Any suggestions?

  3. davidchait
    Posted 8 years ago #

    From the wp-cache faq:

    How do I make certain parts of the page stay dynamic?

    It’s compatible with Staticze Reloaded. From their FAQ:

    There are two ways to do this, you can have functions that say dynamic or include entire other files. To have a dynamic function in the cached PHP page use this syntax around the function:

    <!--mfunc function_name('parameter', 'another_parameter') -->
    <?php function_name('parameter', 'another_parameter') ?>

    The HTML comments around the mirrored PHP allow it to be executed in the static page. To include another file try this:

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

    That will include file.php under the ABSPATH directory, which is the same as where your wp-config.php file is located.


  4. omry
    Posted 7 years ago #

    try the workaround described here:

Topic Closed

This topic has been closed to new replies.

About this Topic