Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#8009] Update model invalidate cache callbacks #8011

Closed
wants to merge 2 commits into from

Conversation

gbp
Copy link
Member

@gbp gbp commented Nov 14, 2023

Relevant issue(s)

Fixes #8009

What does this do?

Update model invalidate cache callbacks.

Only run the callbacks when no_xapian_reindex hasn't been set.

Why was this needed?

This will prevent excessive NotifyCacheJob jobs from being created overnight when script/update_public_bodies_stats or when user alert tracks email is sent.

Implementation notes

Might want to consider the naming of no_xapian_reindex.

gbp added 2 commits November 14, 2023 11:51
Only run the callbacks when `no_xapian_reindex` hasn't been set.

This will prevent excessive `NotifyCacheJob` jobs from being created
overnight when `script/update_public_bodies_stats` or when user alert
tracks email is sent.

Fixes #8009
@gbp
Copy link
Member Author

gbp commented Nov 14, 2023

Merged in ba0de91

@gbp gbp closed this Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Large number of NotifyCacheJob queued overnight
1 participant