Skip to content

Commit 55087a0

Browse files
committed
Merge pull request alphagov#192 from alphagov/clea-core-layout-cache
Clea core layout cache
2 parents 3d7a590 + 55193bf commit 55087a0

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

campaigns.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,20 @@ def template(app):
5252

5353
def clear_static_generated_templates():
5454
"""
55-
Our various frontend applications use the wrapper.html.erb and
56-
header_footer_only.html.erb templates. They get these templates
57-
using the Slimmer gem. And this gem fetches these templates from
58-
the static application, located using the ASSET_ROOT.
55+
Our various frontend applications use the wrapper.html.erb,
56+
header_footer_only.html.erb and core_layout.html.erb layout templates.
57+
They get these templates using the Slimmer gem, which fetches
58+
these templates from the static application, located using ASSET_ROOT.
5959
60-
When static is deployed there are no generated wrapper.html.erb or
61-
header_footer_only.html.erb templates. At the first request of
62-
either of these, the application will generate the template. The
63-
template will be placed in the public/template directory. From
64-
that point on, the templates are served by nginx.
60+
When static is deployed there are no generated layout templates
61+
on static At the first request to one these, static will generate
62+
the template. The template will be placed in the public/template
63+
directory. From that point on, the templates are served by nginx.
6564
6665
This function clears the public/template directory to force it to
6766
be regenerated to include the emergency campaign.
6867
"""
69-
for template in ('wrapper.html.erb', 'header_footer_only.html.erb'):
68+
for template in ('wrapper.html.erb', 'header_footer_only.html.erb', 'core_layout.html.erb'):
7069
sudo('rm /var/apps/static/public/templates/{}'.format(template))
7170

7271

0 commit comments

Comments
 (0)