Added cache invalidation to posts and pages bulk apis

refs https://github.com/TryGhost/Team/issues/2677
This commit is contained in:
Simon Backx 2023-04-14 12:25:24 +02:00
parent 854f616f70
commit d98f29c6aa
2 changed files with 12 additions and 4 deletions

View File

@ -164,7 +164,9 @@ module.exports = {
bulkEdit: {
statusCode: 200,
headers: {},
headers: {
cacheInvalidate: true
},
options: [
'filter'
],
@ -195,7 +197,9 @@ module.exports = {
bulkDestroy: {
statusCode: 200,
headers: {},
headers: {
cacheInvalidate: true
},
options: [
'filter'
],

View File

@ -205,7 +205,9 @@ module.exports = {
bulkEdit: {
statusCode: 200,
headers: {},
headers: {
cacheInvalidate: true
},
options: [
'filter'
],
@ -235,7 +237,9 @@ module.exports = {
bulkDestroy: {
statusCode: 200,
headers: {},
headers: {
cacheInvalidate: true
},
options: [
'filter'
],