Munya Hozheri
Forum Replies Created
-
Hi @vmarko,
I’m experiencing this same scenario; exactly as @nickwp161 has described I find it quite confusing. Nonetheless, there are things that are not clear to me.
1. Is the purge function a dual function? It uploads the files to S3 & then also purges the files from cloudfront?
2. If I run cdn_purge from commandline; I do not see corresponding cloudfront invalidations nor is this process running for all my network sites.
3. I have tried cdn_purging 1 site at a time from the command line & the result is the same as aforementioned.
4. Does cdn_purge only work by clicking the purge button backend?
5. Is there a function I can call to only upload files to s3 without dependency on cdn_purge?What I am trying to do is create a cronjob that invokes the cdn purge manually after a couple of mins; doing it this way will run a “pseudo bulk” invalidation of images + possibly upload the missing assets to S3.
Achieving this would be great because then I can manage exactly how many invalidations happen and as such calculate the projected cost.
My setup is a multisite currently with 12 distinct domains & growing. All my sites are heavy visual blog publishers / authors. Having a broken interface due to non-availability of images on the cdn is not an option.
Cheers,
Munya