mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -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 linkTrackingService = require('../../services/link-tracking');
|
||||||
|
const INVALIDATE_ALL_REDIRECTS = '/r/*';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
docName: 'links',
|
docName: 'links',
|
||||||
|
@ -25,7 +26,7 @@ module.exports = {
|
||||||
bulkEdit: {
|
bulkEdit: {
|
||||||
statusCode: 200,
|
statusCode: 200,
|
||||||
headers: {
|
headers: {
|
||||||
cacheInvalidate: true
|
cacheInvalidate: INVALIDATE_ALL_REDIRECTS
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
'filter'
|
'filter'
|
||||||
|
|
Loading…
Add table
Reference in a new issue