mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Add cache invalidation header when updating tags
no issue
This commit is contained in:
parent
54c7d23b26
commit
4eee52d142
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue