I have a plugin that has mobile detection to show different banners which code is called in the header of all the pages. How can i remove caching for that plugin code and still allow the whole page to have cache?
Whenever i add put DONOTPACHECACHE in the plugin it removes the ability to have cache on the pages. I've tried removing it in the page cache options by putting the file in the exclusion list but it seems that only refers to things outside the wp-content.
Any help would be appreciated.