• Resolved colmtroy

    (@colmtroy)


    Hey,
    Twice today my worker has been silently deleted from Cloudflare.
    I’ve log verbosity set to high and there’s nothing in the logs showing a delete event.
    I can however see the script/route delete instructions in Cloudflare.
    I’m using V4.5.1 and after it happened the first time I actually reset the plugin and re set everything up from scratch (which worked fine).
    Do you know of anything that would cause the worker to be deleted in this manner?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter colmtroy

    (@colmtroy)

    And wouldn’t you know – I’ve been scratching my head on this for hours and as soon as I posted this I think I have an idea whats happening 🙂
    I have a bash script that builds a failover instance of our site on a different server. Part of that script deactivates this plugin in the failover environment using wp cli – just to avoid the worker potentially caching/indexing our failover url. Is there any way the plugin can be deactivated without it deleting the CF worker (assuming my theory is indeed correct!).

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @colmtroy,
    So happy to hear that you have finally figured out what was causing this. But no there is no way to deactivate the plugin while keeping the worker code added by the plugin. This has been done for proper usage only. Imagine you deactivate the plugin but the worker and route still present in CF which is still caching your pages and you are scratching your head thinking about what is causing the caching after deactivating the plugin.

    Thread Starter colmtroy

    (@colmtroy)

    @isaumya yip I understand that for 99.99999% of use cases it makes sense to remove the worker upon deactivation. It would be useful to have a filter to override that behaviour for developers in my scenario or even for people who do other similar edge cases like temporary plugin deactivations when looking for plugin conflicts etc. who don’t want to lose their worker stats in CF etc.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @colmtroy,
    I will add a feature request in our internal development system for this.

    Thread Starter colmtroy

    (@colmtroy)

    @isaumya awesome thank you!

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

The topic ‘Worker suddenly deleted’ is closed to new replies.