summaryrefslogtreecommitdiff
path: root/meetingtools
diff options
context:
space:
mode:
Diffstat (limited to 'meetingtools')
-rw-r--r--meetingtools/apps/content/tasks.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/meetingtools/apps/content/tasks.py b/meetingtools/apps/content/tasks.py
index dcdae03..3de9112 100644
--- a/meetingtools/apps/content/tasks.py
+++ b/meetingtools/apps/content/tasks.py
@@ -28,6 +28,12 @@ def cache_cluster_content():
get_cluster_content(acc)
+@periodic_task(run_every=crontab(hour="*", minute="*/15", day_of_week="*"))
+def cache_domain_content():
+ for domain_tag in Tag.objects.filter(name__startswith='domain:'):
+ get_domain_content(domain_tag)
+
+
def import_acc(acc, since=0):
with ac_api_client(acc) as api:
if since > 0: