Skip to content

Commit 5903a24

Browse files
committed
only update email inventory daily
1 parent 9c23474 commit 5903a24

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/perftools/management/commands/create_page_cache.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ class Command(BaseCommand):
394394
help = 'generates some /results data'
395395

396396
def handle(self, *args, **options):
397-
create_email_inventory_cache()
398397
create_grant_type_cache()
399398
create_grant_clr_cache()
400399
create_grant_category_size_cache()
@@ -412,3 +411,8 @@ def handle(self, *args, **options):
412411
create_contributor_landing_page_context()
413412
create_hackathon_cache()
414413
create_hackathon_list_page_cache()
414+
hour = int(timezone.now().strftime('%H'))
415+
if hour < 4:
416+
# do dailyi updates
417+
create_email_inventory_cache()
418+

0 commit comments

Comments
 (0)