1
0
Fork 0

Increase cache time and update interval for stats

Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
spacecruft
Alfredos-Panagiotis Damkalis 2022-02-07 16:25:29 +02:00
parent 1eb1526cd5
commit 2e13954fef
2 changed files with 2 additions and 2 deletions

View File

@ -431,7 +431,7 @@ def cache_statistics():
.. seealso:: calculate_statistics
"""
statistics = calculate_statistics()
cache.set('stats_transmitters', statistics, 60 * 60 * 2)
cache.set('stats_transmitters', statistics, 60 * 60 * 25)
ids = []
sat_stats = {}

View File

@ -52,7 +52,7 @@ def setup_periodic_tasks(sender, **kwargs):
sender.add_periodic_task(RUN_EVERY_TWO_HOURS, update_tle_sets.s(), name='update-tle-sets')
sender.add_periodic_task(
RUN_HOURLY, background_cache_statistics.s(), name='background-cache-statistics'
RUN_DAILY, background_cache_statistics.s(), name='background-cache-statistics'
)
sender.add_periodic_task(