Merge pull request #4861 from ErisDS/tag-mgmt-cache

Add cache invalidation header when updating tags
This commit is contained in:
Jason Williams 2015-01-27 20:23:45 -06:00
commit c764503224

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