Title: Compatability with WP SuperCache
Last modified: August 22, 2016

---

# Compatability with WP SuperCache

 *  Resolved [donmcleman](https://wordpress.org/support/users/donmcleman/)
 * (@donmcleman)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/compatability-with-wp-supercache/)
 * Hi, I’ve read that SuperCache no longer works properly with Adrotate. What I’ve
   found is that with SuperCache the ads no longer rotate when I refresh the page,
   and when I turn off SuperCache they work perfectly.
 * I’ve looked within the settings for SuperCache and there are two methods that
   I believe could make it work – could you check it out please and see if it makes
   sense? If you think the first option would work, it would mean you updating the
   plugin. I’ll paste in the text from SuperCache:
 * “How do I make certain parts of the page stay dynamic?
 * Note: this functionality is disabled by default. You will have to enable it on
   the Advanced Settings page.
 * There are 2 ways of doing this. You can use Javascript to draw the part of the
   page you want to keep dynamic. That’s what Google Adsense and many widgets from
   external sites do and is the recommended way. Or you can use a WP Super Cache
   filter to do the job but you can’t use mod_rewrite mode caching. You have to 
   switch to PHP or legacy caching.
 * WP Super Cache 1.4 introduced a cacheaction filter called wpsc_cachedata. The
   cached page to be displayed goes through this filter and allows modification 
   of the page. If the page contains a placeholder tag the filter can be used to
   replace that tag with your dynamically generated html. The function that hooks
   on to the wpsc_cachedata filter should be put in a file in the WP Super Cache
   plugins folder unless you use the late_init feature. An example plugin is included.
   Edit dynamic-cache-test.php to see the example code. There are two example functions
   there. There’s a simple function that replaces a string (or tag) you define when
   the cached page is served. The other example function uses an output buffer to
   generate the dynamic content. Due to a limitation in how PHP works the output
   buffer code MUST run before the wpsc_cachedata filter is hit, at least for when
   a page is cached. It doesn’t matter when serving cached pages. See this post 
   for a more technical and longer explanation. To execute WordPress functions you
   must enable the ‘Late init’ feature on the advanced settings page.”
 * Unfortunately I can’t simply swap caching plugins as every other one I’ve tried
   causes a conflict that I can’t track down… so I have to stick with SuperCache.
 * By the way, apart from this point your plugin does exactly what I want. And the
   geo location option is something I’ll need in the future. So please tell me there’s
   a workaround for the caching problem…
 * [https://wordpress.org/plugins/adrotate/](https://wordpress.org/plugins/adrotate/)

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

 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/compatability-with-wp-supercache/#post-5564729)
 * Those 2 options, as far as I can tell, work too early (since they run before 
   plugins are loaded) for AdRotate and as such are not compatible.
 *  Thread Starter [donmcleman](https://wordpress.org/support/users/donmcleman/)
 * (@donmcleman)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/compatability-with-wp-supercache/#post-5564730)
 * Ok, thanks for responding so quickly. I’ve begun using another plugin, but it’s
   not as slick 🙂
 *  Thread Starter [donmcleman](https://wordpress.org/support/users/donmcleman/)
 * (@donmcleman)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/compatability-with-wp-supercache/#post-5564758)
 * The other rotation plugin started causing conflicts… So, I bit the bullet and
   reinstalled W3 Total Cache. I’m still using WP Minify Fix to take care of the
   minifying as that is what was causing the problems with W3 TC the first time 
   I used it.
 * So, I am at last using Adrotate as I’d wanted and it works perfectly – thank 
   you!
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/compatability-with-wp-supercache/#post-5564851)
 * Great to hear 🙂
 *  [Daniel J. Lewis](https://wordpress.org/support/users/djosephdesign/)
 * (@djosephdesign)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/compatability-with-wp-supercache/#post-5564949)
 * So AdRotate and WP Super Cache are still not compatible with each other?
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/compatability-with-wp-supercache/#post-5564951)
 * As long as caching plugins do not support fragmented caching, then no.
    W3 Total
   Cache is the only plugin supporting such a feature as far as I know. Wp Super
   Cache broke compatibility by removing it 2 or 3 years ago.

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

The topic ‘Compatability with WP SuperCache’ is closed to new replies.

 * ![](https://ps.w.org/adrotate/assets/icon-256x256.gif?rev=3117289)
 * [AdRotate Banner Manager](https://wordpress.org/plugins/adrotate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adrotate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adrotate/)
 * [Active Topics](https://wordpress.org/support/plugin/adrotate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adrotate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adrotate/reviews/)

## Tags

 * [wp-supercache](https://wordpress.org/support/topic-tag/wp-supercache/)

 * 6 replies
 * 3 participants
 * Last reply from: [Arnan](https://wordpress.org/support/users/adegans/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/compatability-with-wp-supercache/#post-5564951)
 * Status: resolved