• Resolved Martin Sauter

    (@martinsauter)


    When WP Super Cache is installed, WP Statistics displays the following warning:

    «The cache plugin WP Super Cache is detected, please make sure the /wp-content/plugins/wp-statistics/assets/js/tracker.js file is excluded from file optimization and caching.»

    On the other hand, the official WP Statistics documentation at https://wp-statistics.com/resources/how-to-exclude-wp-statistics-tracker-js-from-caching-minification/ says:

    «WP Super Cache does not cache or modify static assets like .js, .css, or images. It only caches full HTML page content. Therefore, you do not need to (and cannot) exclude tracker.js in WP Super Cache settings.»

    This makes no sense. If the information in the documentation is correct, then why display the alert?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mostafa Soufi

    (@mostafas1990)

    Hi @martinsauter,

    You’re right, the warning is misleading for WP Super Cache, and our KB article is the one that’s accurate. Sorry for the confusion.

    The notice is a single generic message we show whenever any supported cache plugin is detected. It was originally written with JS-optimizer plugins in mind (WP Rocket, WP Fastest Cache, LiteSpeed Cache, SG Speed Optimizer, WP-Optimize), which can minify, concatenate, or defer tracker.js and break tracking. For those plugins the exclusion advice is correct.

    WP Super Cache, however, is a page-only cache, it doesn’t touch static .js/.css files at all, so there’s nothing for you to exclude and nothing to worry about. The same is true for Comet Cache and Cache Enabler.

    Good news: I’ve just pushed a fix on our development branch that suppresses this notice for WP Super Cache, Comet Cache, Cache Enabler, and the bare WP_CACHE constant. It’ll go out in the next release.

    In the meantime, you can click the “x” on the notice to dismiss it permanently, it won’t come back on this site.

    Thanks for taking the time to flag it, this kind of report is genuinely helpful.

    Best,
    Mostafa — WP Statistics

    Thread Starter Martin Sauter

    (@martinsauter)

    Thank you, Mostafa. I appreciate your detailed answer and the quick resolution of the issue. This will make WP Statistics even better!

    Best,
    Martin

    Plugin Author Mostafa Soufi

    (@mostafas1990)

     Thank you, Martin! Glad it’s sorted. 🙏

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.