Increase cache time and update interval for stats
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>spacecruft
parent
1eb1526cd5
commit
2e13954fef
|
@ -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 = {}
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue