From 4eee52d1422d3fafb10b91b7ab336c3ed23056e4 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Tue, 27 Jan 2015 23:44:31 +0000 Subject: [PATCH] Add cache invalidation header when updating tags no issue --- core/server/api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/api/index.js b/core/server/api/index.js index 84de520877..00e3cd590d 100644 --- a/core/server/api/index.js +++ b/core/server/api/index.js @@ -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];