diff --git a/core/server/api.js b/core/server/api.js index 273fca757f..7e4a391806 100644 --- a/core/server/api.js +++ b/core/server/api.js @@ -321,9 +321,9 @@ function invalidateCache(req, res, result) { cacheInvalidate = "/, /page/*, /rss/, /rss/*"; if (id) { if (result.toJSON) { - cacheInvalidate += ', /' + result.toJSON().slug; + cacheInvalidate += ', /' + result.toJSON().slug + '/'; } else { - cacheInvalidate += ', /' + result.slug; + cacheInvalidate += ', /' + result.slug + '/'; } } }