ostark / upper

Integrates Edge Caches like Fastly, KeyCDN, Cloudflare and Varnish with Craft.
MIT License
102 stars 22 forks source link

Ability to add global/default tags #30

Closed devinellis closed 4 years ago

devinellis commented 5 years ago

We'd like a config value that lets us set one or more site-wide cache tags. This way we can tag everything with ['cms', 'production'], etc.

We're trying to switch from Varnish to Cloudflare for our HTML caching. However, we run multiple "apps" under our domain and we'd rather not clear all of the Cloudflare cache every time we deploy.

We can take a stab at submitting a PR if you let us know how you would prefer to handle this functionality. One simple solution would be to add the keyPrefix as a tag on its own.

Thanks @ostark !

ostark commented 5 years ago

Go ahead, some lines of code tell more than 1000 words