Title: Pages without SlimStatParams &amp; WP Super Cache
Last modified: March 5, 2018

---

# Pages without SlimStatParams & WP Super Cache

 *  Resolved [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/pages-without-slimstatparams-wp-super-cache/)
 * Not a support question, but might be useful for anyone encountering the same 
   issue;
 * I was struggling with occasional loss of reported traffic due to my pages being
   cached by WP Super Cache (which is not active for logged in users) but not having
   SlimStatParams & the slimstat JS-file in it. I tried changing different settings
   in Slimstat, but the problem still occurred. I was not able to pinpoint the exact
   root cause, so I ended up using this code snippet to prevent pages being cached
   by WP Super Cache if they don’t have SlimStatParams in the HTML source:
 *     ```
       add_filter('wp_cache_ob_callback_filter','slimstat_checker');
       function slimstat_checker($bufferIn) {
         if ( strpos($bufferIn, "SlimStatParams") === false ) {
       	define("DONOTCACHEPAGE","no slimstat no cache");
       	error_log("no slimstat = no cache");
         }
         return $bufferIn;
       }
       ```
   
 * hope this is useful for someone someday 🙂
 * frank

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/pages-without-slimstatparams-wp-super-cache/#post-10041017)
 * Thank you for sharing.

Viewing 1 replies (of 1 total)

The topic ‘Pages without SlimStatParams & WP Super Cache’ is closed to new replies.

 * ![](https://ps.w.org/wp-slimstat/assets/icon.svg?rev=2832242)
 * [SlimStat Analytics](https://wordpress.org/plugins/wp-slimstat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-slimstat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-slimstat/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-slimstat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-slimstat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-slimstat/reviews/)

## Tags

 * [don't cache](https://wordpress.org/support/topic-tag/dont-cache/)
 * [slimstat](https://wordpress.org/support/topic-tag/slimstat/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/pages-without-slimstatparams-wp-super-cache/#post-10041017)
 * Status: resolved