mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-06 02:48:25 -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()
|
db.session.commit()
|
||||||
|
|
||||||
|
|
||||||
@cached(dao_cache)
|
|
||||||
def dao_get_jobs_older_than_data_retention(notification_types):
|
def dao_get_jobs_older_than_data_retention(notification_types):
|
||||||
stmt = select(ServiceDataRetention).where(
|
stmt = select(ServiceDataRetention).where(
|
||||||
ServiceDataRetention.notification_type.in_(notification_types)
|
ServiceDataRetention.notification_type.in_(notification_types)
|
||||||
|
|||||||
Reference in New Issue
Block a user