• Resolved Enzo

    (@enzorabante)


    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)
  • Hello @enzorabante ,
    I think the best you can do is to install the official Cloudflare WordPress Plugin and it should take care about cache management automatically.

    Hope that helps.

    Thread Starter Enzo

    (@enzorabante)

    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.

    Dear @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
    );

    Dear @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

    (@enzorabante)

    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.