Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> Cloudflare APO issues
Last modified: October 1, 2024

---

# [NSFW] Cloudflare APO issues

 *  Resolved [joesupport](https://wordpress.org/support/users/joesupport/)
 * (@joesupport)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/cloudflare-apo-issues/)
 * When I enabled Cloudflare APO, my ads started only showing ~90% of the time.
 * When you visit the below URL, there should be a ad, asking readers to sign up
   to the email list. It should be surrounded with a thin dotted line below the 
   post author name and above the image of birds. This ad appears on most of the
   other posts.
 * When I turn Cloudflare APO off, the issue resolves itself.
 * I am also using Autoptimize.
 * The “Mode” for all ad groups has always been set to “Default – Show one ad at
   a time”
 * I have replicated the issue on Safari & Chrome in both iOS and MacOS.
 * I am using the Pro version
 * Is there a simple way to resolved this issue?
    -  This topic was modified 1 year, 8 months ago by [joesupport](https://wordpress.org/support/users/joesupport/).
      Reason: more detail
    -  This topic was modified 1 year, 8 months ago by [joesupport](https://wordpress.org/support/users/joesupport/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcloudflare-apo-issues%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/cloudflare-apo-issues/#post-18048118)
 * I don’t know what Cloudflare APO is, but if you look at the Page source at the
   location you describe there is a group 13 that loaded advert 136. Or, it tries
   to anyway.
 * The advert appears empty. A few paragraphs down the page there is a sidenote 
   text ad, Group 1, that does work.
    Maybe the missing ad is indeed ‘missing’, 
   and not set up properly?
 * You can kind of check this by editing the ad and making sure the preview works.
   If not, there is something wrong with the adcode.
    If it does work, but it still
   won’t show up consistently, the schedule can be wrong. Check the schedule settings
   in Manage Schedule for any weird stuff, match it with a working ad’s schedule
   for example.
 *  Thread Starter [joesupport](https://wordpress.org/support/users/joesupport/)
 * (@joesupport)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/cloudflare-apo-issues/#post-18049387)
 * Hi Arnan,
 * Thanks for you reply and help with checking the issue.
 * Cloudflare APO caches your website on Cloudflare’s network, both static and dynamic
   content. It caches about 97% of my site, up from ~50% from before I enabled it.
   You can read their marketing of it here: [https://www.cloudflare.com/application-services/products/automatic-platform-optimization/](https://www.cloudflare.com/application-services/products/automatic-platform-optimization/)
 * Maybe the missing ad is indeed ‘missing’, and not set up properly?
 * I honestly don’t think so…It works just fine when I preview it in the Adrotate
   Pro editor and when I check it in a browser where I am logged into wp-admin. 
   It also worked just fine without Cloudflare APO activated. Also, the schedule
   has no issues.
 * If you visit most other posts on the site, the ad loads fine.
 * Could it be that the site is being cached too aggressively? If so, is there a
   way to exclude AdRotate ads from being cached?
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/cloudflare-apo-issues/#post-18050328)
 * But the code is missing from the first group, as I mentioned in my previous message.
   
   Caching just caches stuff and then ignores any changes until the cache refreshes–
   So 3 ads in a group would only show one, for example.
 * The missing code suggests a configuration error in the advert (eg, no output 
   because of that) or some kind of content blocker is stripping out the code.
 * Then on the other hand, if it works without the CF cache active… Logically it’s
   a caching issue.
    Try emptying their cache and see if something changes then.
   If the ad appears for example.
 * At any rate AdRotate has support for Borlabs Cache and W3 Total Cache. Both support
   a thing called Fragmented caching which lets you exclude bits of the site from
   caching – Ads in this case.
 * Check out this manual to see how to set up the plugins for that to work; [https://ajdg.solutions/support/adrotate-manuals/caching-support/](https://ajdg.solutions/support/adrotate-manuals/caching-support/)
   
   Personally I prefer Borlabs cache ([https://borlabs.io](https://borlabs.io)) 
   as it’s much easier to set up.
 *  Thread Starter [joesupport](https://wordpress.org/support/users/joesupport/)
 * (@joesupport)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/cloudflare-apo-issues/#post-18050954)
 * I tried emptying the cache, but no luck.
 * I’ll check out both these plugins. Thanks Arnan!

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

The topic ‘[NSFW] Cloudflare APO issues’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [joesupport](https://wordpress.org/support/users/joesupport/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/cloudflare-apo-issues/#post-18050954)
 * Status: resolved