Skip to content

Commit b9a03f7

Browse files
authored
Merge pull request alphagov#245 from alphagov/clear-government-frontend-cache-for-emergency-banner-publishing
Add task to clear government-frontend rails cache
2 parents 48d9618 + 512c0f2 commit b9a03f7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

campaigns.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ def clear_frontend_cache():
8585
sudo("rm -rf /var/apps/frontend/tmp/cache/*")
8686

8787

88+
def clear_government_frontend_cache():
89+
sudo("rm -rf /var/apps/government-frontend/tmp/cache/*")
90+
91+
8892
def deploy_banner(application):
8993
execute(template, application)
9094
if application == 'frontend':
@@ -133,8 +137,6 @@ def remove_emergency_banner():
133137
@task
134138
@roles('class-frontend')
135139
def clear_cached_templates():
136-
for application in APPLICATIONS:
137-
if application == 'frontend':
138-
clear_frontend_cache()
139-
if application == 'static':
140-
clear_static_generated_templates()
140+
clear_frontend_cache()
141+
clear_static_generated_templates()
142+
clear_government_frontend_cache()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy