News for hackers. Stuff that matters.
Re:My Own Private CDN by Ayesh on Saturday September 01, 2018 @01:46AM (#17890454)
One of the most painful things to work on would be clearing caches. I have my own setup that I invalidate the _entire_ set of assets just to make sure the end users do not get stale assets, and I just ++ a build ID and all the URLs are uncached at the edges. Not all sites hosted in shared hosts can do this.
Re:My Own Private CDN by zrail on Saturday September 01, 2018 @02:43AM (#17890608)
My plan for this is to just tell the cache nodes to delete the nginx cache folder entirely via their one-minute check in cycle. Each node will get a flag in the database that says "needs clearing" and when they check in next their update script will include an `rm -rf /nginx/cache/directory/*`. Extremely blunt but also easy and effective.