mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
parent
70861f6fcd
commit
ba0b6982a4
1 changed files with 2 additions and 2 deletions
|
@ -321,9 +321,9 @@ function invalidateCache(req, res, result) {
|
||||||
cacheInvalidate = "/, /page/*, /rss/, /rss/*";
|
cacheInvalidate = "/, /page/*, /rss/, /rss/*";
|
||||||
if (id) {
|
if (id) {
|
||||||
if (result.toJSON) {
|
if (result.toJSON) {
|
||||||
cacheInvalidate += ', /' + result.toJSON().slug;
|
cacheInvalidate += ', /' + result.toJSON().slug + '/';
|
||||||
} else {
|
} else {
|
||||||
cacheInvalidate += ', /' + result.slug;
|
cacheInvalidate += ', /' + result.slug + '/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue