mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
parent
70861f6fcd
commit
ba0b6982a4
@ -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…
Reference in New Issue
Block a user