diff --git a/workflow/engine/bin/tasks/cliFlushCache.php b/workflow/engine/bin/tasks/cliFlushCache.php index ffcfb441c..7e3388148 100644 --- a/workflow/engine/bin/tasks/cliFlushCache.php +++ b/workflow/engine/bin/tasks/cliFlushCache.php @@ -86,8 +86,8 @@ function flush_cache($args, $opts) if (class_exists($details->sClassName)) { $oPlugin = new $details->sClassName($details->sNamespace, $details->sFilename); $oPlugin->setup(); + file_put_contents($pathSingleton, $oPluginRegistry->serializeInstance()); } - file_put_contents($pathSingleton, $oPluginRegistry->serializeInstance()); } } }