iftechfoundation / ifarchive-admintool

Admin script for IF Archive work
1 stars 1 forks source link

Automatically flush Cloudflare caches #37

Open dfabulich opened 9 months ago

dfabulich commented 9 months ago

The button exists now. I didn't wind up automating the process because it's a nuisance for zip files:

  • Replace the file
  • Clear the cache for the zip file
  • Rebuild Master-Index
  • Wait five minutes for Unbox to notice the new Master-Index
  • Recheck Unbox

If you check Unbox too soon, it may still have the old zip; then you'd have to clear the cache again.

Originally posted by @erkyrath in https://github.com/iftechfoundation/ifarchive-admintool/issues/34#issuecomment-1870632799

I think we can do better than this. I filed a PR https://github.com/iftechfoundation/ifarchive-unbox/pull/48 for Unbox to allow forcing it to refresh its cache of the master index. If we were to merge that PR, we could have "rebuild master-index" automatically refresh unbox's cache, and then replacing the zip file could do all of those steps automatically.