Title: Cache issue
Last modified: December 13, 2020

---

# Cache issue

 *  Resolved [Enzo](https://wordpress.org/support/users/enzorabante/)
 * (@enzorabante)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-44/)
 * Hi,
    this is a great plugin but I’m struggling with cache issues. Every time 
   I enable or disable a popup, js are cached and I need to purge the js cache on
   our Cloudflare panel. Can you help me to prevent this? Is there a different setting
   to follow for websites using CDN services like Cloudflare?

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

 *  [Sygnoos](https://wordpress.org/support/users/sygnoos/)
 * (@sygnoos)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-44/#post-13785729)
 * Hello [@enzorabante](https://wordpress.org/support/users/enzorabante/) ,
    I think
   the best you can do is to install the official [Cloudflare WordPress Plugin](https://wordpress.org/plugins/cloudflare/)
   and it should take care about [cache management automatically](https://support.cloudflare.com/hc/en-us/articles/115002708027-Cloudflare-WordPress-Plugin-Automatic-Cache-Management-).
 * Hope that helps.
 *  Thread Starter [Enzo](https://wordpress.org/support/users/enzorabante/)
 * (@enzorabante)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-44/#post-13785995)
 * Hi,
    I’m using the Cloudflare WordPress plugin but is not compatible on how your
   plugin is working. If I’m not wrong, when I enable or disable a popup, everything
   is invoked with a hook on the page and not a real change so the CF plugin is 
   not able to understand if there is really a change.
 *  [Sygnoos](https://wordpress.org/support/users/sygnoos/)
 * (@sygnoos)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-44/#post-13792939)
 * Dear [@enzorabante](https://wordpress.org/support/users/enzorabante/),
    We have
   checked the Cloudflare plugin and they have functionality for clearing the cache
   right after the post is deleted/update/edited and when we update any popup we
   can see that an appropriate function is getting triggered and the cache should
   be removed. As the popups itself is a custom post type it follows all the WordPress
   Post/Page logic so when you publish/remove/edit any popup the same hooks are 
   triggered. The enable/disable switcher off the popup is working via AJAX request
   and in this case, we are changing popup status and it should not trigger any 
   of the hooks mentioned below, so it’s really strange.
 * Saying that may I ask you to check if the cache is getting cleared after changing
   any post so we could clearly say this is something related to popups?
 * Also, how did you setup the popup on the page? I’m wondering maybe in this case
   the page cache should be cleared as well!?
 *     ```
       $cloudflarePurgeURLActions = array(
           'deleted_post',                     // Delete a post
           'edit_post',                        // Edit a post - includes leaving comments
           'delete_attachment',                // Delete an attachment - includes re-uploading
           'post_updated',                     // Update a post
           'comment_post',                     // Post a comment
       );
       ```
   
 *  [Sygnoos Support](https://wordpress.org/support/users/sygnoossupport/)
 * (@sygnoossupport)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-44/#post-13801900)
 * Dear [@enzorabante](https://wordpress.org/support/users/enzorabante/) ,
 * How are you today?
    Just wondering whether you saw our previous message? Please,
   let us know if you still need help with this issue.
 *  Thread Starter [Enzo](https://wordpress.org/support/users/enzorabante/)
 * (@enzorabante)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-44/#post-13802148)
 * Thanks.
    I will work with them to understand how fix it Thanks

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

The topic ‘Cache issue’ is closed to new replies.

 * ![](https://ps.w.org/popup-builder/assets/icon-128x128.gif?rev=2698840)
 * [Popup Builder - Create highly converting, mobile friendly marketing popups.](https://wordpress.org/plugins/popup-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-builder/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Enzo](https://wordpress.org/support/users/enzorabante/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-44/#post-13802148)
 * Status: resolved