Hello @bigwheelwebdesign
I am sorry about the issue you are experiencing and I am happy to assist you with this.
Have you by any chance wrapped the PHP code with <mfunc>, meaning used Page Fragment Caching for the specific PHP code?
Which Page Cache method you are using?
Thanks!
Hi Marko,
The PHP is the output from the AdRotate plugin which we use to display advertisements. I haven’t wrapped it with any other code. The page cache method I’m referring to is the one in W3 Total Cache – when I disable it in W3TC the problem occurs.
Hello @bigwheelwebdesign
Thank you for the information. Well, this is a very strange issue.
I am asking about the caching method in Performance>General settings>Page Cache. Is it set to Disk: Enhanced or Disk: Basic?
Have you tried to delete the wp-content/cache/ folder manually after the plugin is disabled and empty your browser cache?
Thanks!
Hi Marko,
It is really strange isn’t it? I could hardly believe that this issue could be caused by that, but I’ve recreated the issue several times – I can really turn the issue on and off by turning page cache on and off.
Sorry, I misunderstood the question – the page cache method is Disk Enhanced.
I haven’t tried manually deleting that folder. I will give that a try later but I’ll wait until about midnight tonight (London time) when our traffic isn’t usually as high, to avoid disrupting our site users if I make a mistake.
Hello @bigwheelwebdesign
Thank you for the info.
It seems like the caching is actually only covering the real issue. So once the cache is disabled the issue appears and since the page is cached the issue is not there.
Have you tried purging the page cache?
Thanks!
Yes I purged the page cache before disabling it, but still the issue occurs. It seems impossible doesn’t it? I’m really confused.
Hello @bigwheelwebdesign
Thank you for the information.
Yes its very strange. Since the issue occurs when the W3 Total Cache is disabled, I believe that the issue is not related to our plugin. Simply because when the plugin is disabled, it does not have any effect on the page.
Thanks
Well it’s when the plugin or just the page cache section of the plugin is disabled that the error occurs. I see your point though.
I’ll try to get some support from the developers who made the ad rotation plugin we use. Maybe they can help.
If anyone else is having this same issue with AdRotate when disabling the W3TC page cache – it’s a setting in AdRotate > Settings > Miscellaneous.
Disabling W3TC support here resolved the issue for me.