Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix cache warmer - Delete all files

  • Loading branch information...
commit 1ba196a17dcf3f5ec6182ef1fd6cb59cdcefece3 1 parent 015f698
@Abhoryo authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 CacheWarmer/JsFormValidationCacheWarmer.php
View
5 CacheWarmer/JsFormValidationCacheWarmer.php
@@ -25,6 +25,11 @@ public function __construct(ContainerInterface $container)
public function warmUp($cacheDir)
{
+ // Delete all files
+ $scriptPath = $this->container->getParameter('apy_js_form_validation.script_directory');
+ $scriptRealPath = $this->container->getParameter('assetic.write_to').'/'.$scriptPath;
+ $this->container->get('filesystem')->remove($scriptRealPath);
+
$enabled = $this->container->getParameter('apy_js_form_validation.enabled');
if ($enabled == true) {
$warmer_routes = $this->container->getParameter('apy_js_form_validation.warmer_routes');
Please sign in to comment.
Something went wrong with that request. Please try again.