mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -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/*";
|
||||
if (id) {
|
||||
if (result.toJSON) {
|
||||
cacheInvalidate += ', /' + result.toJSON().slug;
|
||||
cacheInvalidate += ', /' + result.toJSON().slug + '/';
|
||||
} else {
|
||||
cacheInvalidate += ', /' + result.slug;
|
||||
cacheInvalidate += ', /' + result.slug + '/';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue