Does anyone have documentation on how to setup a CDN for the cache images?
I have a pull zone setup for
http://cdn.example.com but do not know where to tell Zenphoto that the path to image files are now
http://cdn.example.com/cache/gallery/example.jpg
Comments
- Add admin option for CDN domain entry
- If CDN domain is set, output all cache image URLs with CDN domain instead of origin domain
Adding an admin option is easy, but I'm not sure how involved it would be to change the domain for all image links. I don't believe that the devs have a CDN at their disposal for testing, either.CDN on a pull zone caches automatically once the request is made. So pointing your browser to cdn.example.com/image.jpg makes the CDN copy the example.com/image.jpg and serve it from the CDN for all other request.
I do not understand why this is a core problem. Why can a theme just call the images from cdn.example.com/image.png
Is it not just a change from http://www.zenphoto.org/demo/albums/album2/Cosmos05.jpg
to
http://cdn.zenphoto.org/demo/albums/album2/Cosmos05.jpg
On the http://www.zenphoto.org/demo/album2/Cosmos05.jpg.html page.
Here is the dev guide with sample code from who I use. https://developer.netdna.com/docs/
Also there must be a support for other item types like video or audio files. It is not that simple as you think as you are not familiar with the Zenphoto internals. To do this all right will need major changes anywhere. My colleague will surely later tell more about that.
We have no PM on our forum. In any case you need to open a ticket on the GitHub issue tracker. Otherwise we will not consider this. Again, before 1.4.5 nothing will be officially release in this regard anyway.
But as acrylian has said, nothing will happen without an issue request that can be tracked.