[x] Cache tags are now collected starting with \craft\web\Application::EVENT_INIT and ending with \yii\web\Response::EVENT_AFTER_PREPARE. This allows the default caching beyond template rendering.
[ ] Provide methods to add/remove arbitrary tags
[ ] Provide methods to purge arbitrary tags
[x] Ensures invalidation occurs when saved via CLI or Web
[x] Invalidate URIs on element save and delete. This helps account for cached 404 responses not being cleared for new entries. Can move to Elements::EVENT_INVALIDATE_CACHES after https://github.com/craftcms/cms/pull/14950
[x] Need to prevent resave/entries from trigging a flood of invalidation requests (one per element)
Description
\craft\web\Application::EVENT_INIT
and ending with\yii\web\Response::EVENT_AFTER_PREPARE
. This allows the default caching beyond template rendering.Elements::EVENT_INVALIDATE_CACHES
after https://github.com/craftcms/cms/pull/14950resave/entries
from trigging a flood of invalidation requests (one per element)Related