mirror of
https://github.com/GSA/notifications-api.git
synced 2026-06-27 02:39:36 -04:00
add caching for db calls to prevent excessive UI polling
This commit is contained in:
@@ -202,7 +202,6 @@ def dao_update_job_status_to_error(job):
|
||||
db.session.commit()
|
||||
|
||||
|
||||
@cached(dao_cache)
|
||||
def dao_get_jobs_older_than_data_retention(notification_types):
|
||||
stmt = select(ServiceDataRetention).where(
|
||||
ServiceDataRetention.notification_type.in_(notification_types)
|
||||
|
||||
Reference in New Issue
Block a user