• Resolved konradg2

    (@konradg2)


    Hello,

    thanks for this great plugin.

    On one of our sites we have multiple-nodes-behing-load-balancer configuration and using WP Media Offload to serve our images from AWS S3 CDN, so each node is stateless and their upload forlders are separated (you can never know which node will process your request – it’s up to load balancer to decide).

    Does this plugin supports such configuration?
    Do you plan supporting it in future?

    Seems like no other rename plugin supports it, so it may be some kind of payed option to consider ??

    Best wishes,
    Konrad

    • This topic was modified 4 years, 7 months ago by konradg2.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author crossi72

    (@crossi72)

    Hi @konradg2,
    I don’t think this will be possible because Phoenix Media Rename can’t access your CDN servers, so it is impossible to rename media files across your CDN network.

    The only possible solution is to ask to WP Media Offload developer to support this scenario adding an API to synchronize media file changes over the network.

    I’ll try to contact the plugin’s team to see if we work together to this kind of solution.

    C.

    Thread Starter konradg2

    (@konradg2)

    Thanks @crossi72 for you reply – that would be great.

    Meanwhile tested it on configuration with WP Media Offload but not behind load balancer (so copy of files are always there in uploads folder). It works good with this configuration with no visible drawbacks – image is renamed in both local uploads folder and on AWS S3.

    I wonder if solution would be to detect that file is offloaded, download it to local uploads folder and then rename (the rest of this process seems to work fine).

    Regards,
    Konrad

    Plugin Author crossi72

    (@crossi72)

    Hi @konradg2,
    I contacted WP Media Offload developer and we are working together to give our users the capability to rename media files across CDN network, I’ll let you know if we can find a solution.

    C.

    Plugin Author crossi72

    (@crossi72)

    I’ve made a couple of changes to Phoenix Media Rename but I can’t test the CDN issue because I don’t have any on WP Media Offload’s supported account and WP Media Offload are very busy at the moment, can you make a test?

    Here you can download the test version on Phoenix Media Rename: https://eurosoftlab.com/lab/pmr.rar, can you manually update my plugin and try renaming a CDN served file? (maybe it is a good thing to create a new page and upload a new image, just in case something goes wrong).

    Hope this help!
    C.

    Thread Starter konradg2

    (@konradg2)

    Thanks a lot @crossi72, sure I will test it and let you know in the begining of next week ??

    • This reply was modified 4 years, 7 months ago by konradg2.
    Thread Starter konradg2

    (@konradg2)

    Hello @crossi72,

    many thanks – your workaround works well – I intentionally removed files from local upload dir and it downloaded them from AWS S3 and renamed.

    Unfortunatelly I can’t fully test it so far, because ShortPixel blocks some operations (it has problems with our configuration as well :)) and I can’t disable it on production server. Your fix was very handy – it will help us in making this all works better and we continue to use it – that’s for sure.

    Thank you once again for quick replies and for your help with sorting this out ??

    Have a great day!
    Konrad

    Plugin Author crossi72

    (@crossi72)

    Hi @konradg2,
    I just released version 2.1.0 that integrates the fix and add a new option.

    Thank you for testing the fix!

    C.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘can plugin rename files offloaded to CDN?’ is closed to new replies.