Skip to content

Commit

Permalink
Cache invalidation for tag pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisDS committed Mar 26, 2014
1 parent 13f9bff commit c6c4d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/server/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ function cacheInvalidationHeader(req, result) {

if (method === 'POST' || method === 'PUT' || method === 'DELETE') {
if (endpoint === 'settings' || endpoint === 'users' || endpoint === 'db') {
cacheInvalidate = "/*";
cacheInvalidate = '/*';
} else if (endpoint === 'posts') {
cacheInvalidate = "/, /page/*, /rss/, /rss/*";
cacheInvalidate = '/, /page/*, /rss/, /rss/*, /tag/*';
if (id && jsonResult.slug) {
return config.urlForPost(settings, jsonResult).then(function (postUrl) {
return cacheInvalidate + ', ' + postUrl;
Expand Down

0 comments on commit c6c4d5a

Please sign in to comment.