[eluser]topherdan1[/eluser]
I am using Amazon's CDN, CloudFront.
Two options that I can think of:
- 1. If the file is in production mode, whenever the cache is rebuilt it automatically syncs it to the CDN
- 2. There is batch script that is run as part of syncing the file to the production server which will check if the files have change and if so rebuild the cache and synch it to the CDN
The CDN credentials and whether a CDN is being used could be placed in the config file so that it's simple to implement.