diff options
author | Dave Arter <davea@mysociety.org> | 2020-01-31 16:07:26 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2020-02-26 15:25:31 +0000 |
commit | 379410d69f5d2cad7bd0dca45a09e6096b3672d6 (patch) | |
tree | 13100ea0e520bdbfc99a49e7be3634e39b5c303a /perllib/FixMyStreet/App/Controller/Admin/ManifestTheme.pm | |
parent | 8c4b2a45e990dfe2e41d34883f0a4a9171650557 (diff) |
Cache available icons for front page
This saves hammering the FS for every front page request
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin/ManifestTheme.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin/ManifestTheme.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/ManifestTheme.pm b/perllib/FixMyStreet/App/Controller/Admin/ManifestTheme.pm index 66e22b483..19017fc6b 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/ManifestTheme.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/ManifestTheme.pm @@ -67,6 +67,7 @@ sub form { if ($c->get_param('delete_theme')) { $c->forward('_delete_all_manifest_icons'); + $c->forward('/offline/_clear_manifest_icons_cache', [ $theme->cobrand ]); $theme->delete; $c->forward('/admin/log_edit', [ $theme->id, 'manifesttheme', 'delete' ]); $c->response->redirect($c->uri_for($self->action_for('index'))); @@ -82,6 +83,7 @@ sub form { return unless $form->validated; $c->forward('/admin/log_edit', [ $theme->id, 'manifesttheme', $action ]); + $c->forward('/offline/_clear_manifest_icons_cache', [ $theme->cobrand ]); $c->response->redirect($c->uri_for($self->action_for('index'))); } |