I want to patch this plugin to limit it to only upload the relevant files for a website instance. The way I use wordpress is as a multisite network. It makes no sense to me to have to upload all the various themes files, plugins & wp-includes again and again for each site on the network and not just the attachments or active theme.
Ideally I'd like the plugin to be able to accept one cdn location for wp-includes and the theme files & plugins, and a separate one for the individual blog's attachments so I can create a bucket & distribution for each blog's attachments and have a single bucket & distribution for the files that are common to every site.
There are two solutions to this problem when dealing with a network of sites:
- make the plugin able to use a single cdn location for all sites on a network and somehow differentiate the uploads folder for each individual site eg. by the blog_id
- allow multiple cdn resources to be defined for the different types of static content eg. a master cdn for themes & plugins & wp-includes and then individual buckets as normal for each site
I'm happy to help coding this but could use some pointers to make sure it's done right. I think the second option would be the simplest.