WordPress.org

Ready to get started?Download WordPress

Forums

Problem with FireStats and WP-cache (4 posts)

  1. ahrenba
    Member
    Posted 7 years ago #

    Hello,
    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
    Member
    Posted 7 years ago #

    Any suggestions?

  3. davidchait
    Member
    Posted 7 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') ?>
    <!--/mfunc-->`

    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'); ?>
    <!--/mclude-->`

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

    -d

  4. omry
    Member
    Posted 6 years ago #

    try the workaround described here:
    http://firestats.cc/ticket/24

Topic Closed

This topic has been closed to new replies.

About this Topic