Image offload CDNs do not work with WP job manager
-
There is a critical issue with your plugin. It does not allow you to store your images on a different server like amazon aws. To replicate the problem install a plugin or service like offload media lite or leopard offload media from code canyon. Configure your media to be copied to an aws bucket. Ask wordpress to use the URL of Amazon aws instead of your domain. This is exactly what happens.
Create a new listing and add two pictures. Click save. The pictures are first saved to your wp content folder. When you view the listing the pictures are there. When you inspect element you can see the URL is using the pictures from aws. All seems fine.
Then go back to the listing and click save again or try and make say a minor edit and save. When you do this the pictures disappear from the listing.
This has to do with the way WP job manager deals with the URL of the pictures. For some reason it does not work well with cdns that offload your pictures with a different URL.
This is critical because some of us that run an efficient platform do not want to store media on the same server as the site, this is because media takes up a lot of bandwidth and can slow a site down. So i prefer to use a dedicated service to host media such as Amazon aws, let their servers do the work to load pictures and I will pay a fee for that.
But for some reason i am shocked automatic have not tested this properly with an image offload CDNs. I guess because most people just use the WordPress architecture and store media in. Their wp content folder. (Not efficient at all, if you have a lot of pictures, you will slow your server down, even with the most effective image reducing plugins like photon on jetpack. Do not if possible, keep your media on the same server if you have a lot of media.
I believe the issue with wp job manager is in your code where you define ‘BASE URL’. For some reason you define BASE URL as the domian.com. So if you use an image cdn as i use to host my images on amazon aws. the images are hosted on an aws site for example domian.com/wp-content/uploads/image-01 will now be aws.amazon.com/sitexr/images/image-01
your plugin is not recognizing that the image url can be different.
If its is ok it would be good to have custom function from you guys so that the base url can check for a different URL variable if this url, ok, if not check this url (aws).
I think this will solve the problem. I am not a developer but from all my investigations i think this is the issue. (to replicate it you need to use a cdn that stores your images on a different domain not jetpack)
many thanks
- The topic ‘Image offload CDNs do not work with WP job manager’ is closed to new replies.