0
Fork 0
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:
Hannah Wolfe 2015-01-27 23:44:31 +00:00
parent 54c7d23b26
commit 4eee52d142

View file

@ -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];