• Resolved kaka90

    (@kaka90)


    I’ve successfully offloaded 99% of media to R2, but they’re still on local server. Data is served from cloudflare and before migrating I’ve selected Full Cloud Migration.

    It’s been 2 days already since migration and I noticed today there were many GET HTTP requests blocked by cloudflare rule. Anyway, how can I force deletion of offloaded images?

    *edit* I’ve just uploaded and offloaded few images and count of files on server hasnt changed so there’s something else blocking removing files

    and one more question,

    cf-cache-status BYPASS

    and browser cache is also disabled, is it normal or should I set it myself on cloudflare?

    • This topic was modified 9 months ago by kaka90.
    • This topic was modified 9 months ago by kaka90.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Masoud Golchin

    (@masoudin)

    Hi @kaka90

    Thanks for the details!

    Just to confirm: single image uploads offload and remove files correctly, but the WP CLI bulk command isn’t removing files after successful offload – is that right?

    To help troubleshoot, could you please share:

    • Your Cloudflare logs
    • Server error logs and debug.log
    • Log files from the Media Overview page in plugin settings

    For the cache, it is recommended to enable it in Cloudflare if it is disabled.

    Thread Starter kaka90

    (@kaka90)

    Neither of the options removes the files.
    There are no errors in the debug.log (I uploaded a new file after enabling logging — the file was offloaded, but it still wasn’t removed).

    Offload Errors have few errors only about file doesnt exist (some files weren’t offloaded, but nvm, they might not exist).


    As for Cloudflare, I don’t have an Enterprise account, so I can’t access the logs.
    Is there anything else I can try?

    Plugin Author Masoud Golchin

    (@masoudin)

    @kaka90

    Do you have some sort of object cache on your website?

    There is a possibility that the object cache is returning the cached value when the plugin is checking if it should remove files or not after successful offload!

    I suggest move to the plugin settings and hit save again and then clear the object cache if it presents. (It will resolve the issue for media files offloading from now on, but for files that are already offloaded it seems that you should remove them manually from your server).

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

The topic ‘offloaded but didnt remove’ is closed to new replies.