mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
Merge pull request #4861 from ErisDS/tag-mgmt-cache
Add cache invalidation header when updating tags
This commit is contained in:
commit
c764503224
@ -66,7 +66,7 @@ cacheInvalidationHeader = function (req, result) {
|
||||
wasPublishedUpdated;
|
||||
|
||||
if (method === 'POST' || method === 'PUT' || method === 'DELETE') {
|
||||
if (endpoint === 'settings' || endpoint === 'users' || endpoint === 'db') {
|
||||
if (endpoint === 'settings' || endpoint === 'users' || endpoint === 'db' || endpoint === 'tags') {
|
||||
cacheInvalidate = '/*';
|
||||
} else if (endpoint === 'posts') {
|
||||
post = jsonResult.posts[0];
|
||||
|
Loading…
Reference in New Issue
Block a user