mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Updated cache invalidation handling on link edit (#15718)
refs https://github.com/TryGhost/Team/issues/2158 - the cache invalidation header returned should be specific to the email links pattern, otherwise it blows entire cache on every link edit
This commit is contained in:
parent
d10d4390f0
commit
83d89ef077
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
const linkTrackingService = require('../../services/link-tracking');
|
||||
const INVALIDATE_ALL_REDIRECTS = '/r/*';
|
||||
|
||||
module.exports = {
|
||||
docName: 'links',
|
||||
|
@ -25,7 +26,7 @@ module.exports = {
|
|||
bulkEdit: {
|
||||
statusCode: 200,
|
||||
headers: {
|
||||
cacheInvalidate: true
|
||||
cacheInvalidate: INVALIDATE_ALL_REDIRECTS
|
||||
},
|
||||
options: [
|
||||
'filter'
|
||||
|
|
Loading…
Add table
Reference in a new issue