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