• Hi,
    I have added my PHP analytics scripts in the header file, so that every time a user visits, the php scripts run and collect analytics data. I installed WP Super Cache to improve performance of my web server. It works really well. But, my concern is, I was unable to stop my analytics php scripts from being cached.

    I tried to exclude : header\.php as well as analytics\.php, but it did not help. As a result, when a user visits multiple pages, the analytics is unable to collect data properly.

    My question is, is there any way I can specify WP Super Cache not to cache php analytics scripts? If yes, then how should I do that ? And, if I can do it through exclude strings option, then what exactly should be the string like (say, the analytics script is “analytics.php” and it is kept in “header.php”) ? Any help will be much appreciated.

  • The topic ‘I want certain PHP scripts not to be cached’ is closed to new replies.