mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Reduced the amount of events Collections listens on
refs https://github.com/TryGhost/Team/issues/3169 - When a not yet mapped event is produced by Ghost model the posts belonging to a collection are recalculated in a brute-force way. This causes a lot of strain on the database and times out some of the tests. Right now we only care about a handful of events, so limited the ones we listen to and will be uncommenting the rest when we have an optimal mapping/handling for them.
This commit is contained in:
parent
f74588f9c2
commit
1fb8fb9bd5
1 changed files with 10 additions and 10 deletions
|
@ -34,17 +34,17 @@ const translateModelEventsToDomainEvents = () => {
|
|||
'post.deleted',
|
||||
'post.edited',
|
||||
|
||||
'tag.added',
|
||||
'tag.edited',
|
||||
'tag.attached',
|
||||
'tag.detached',
|
||||
'tag.deleted',
|
||||
// 'tag.added',
|
||||
// 'tag.edited',
|
||||
// 'tag.attached',
|
||||
// 'tag.detached',
|
||||
// 'tag.deleted',
|
||||
|
||||
'user.activated',
|
||||
'user.activated.edited',
|
||||
'user.attached',
|
||||
'user.detached',
|
||||
'user.deleted'
|
||||
// 'user.activated',
|
||||
'user.activated.edited'
|
||||
// 'user.attached',
|
||||
// 'user.detached',
|
||||
// 'user.deleted'
|
||||
];
|
||||
|
||||
for (const modelEvent of ghostModelUpdateEvents) {
|
||||
|
|
Loading…
Add table
Reference in a new issue