Memory cache have to be flushed before job processing

This commit is contained in:
Frederic Guillot 2016-07-01 13:44:14 -04:00
parent abdfa46cfc
commit 6db72521ea
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
1 changed files with 1 additions and 1 deletions

View File

@ -40,6 +40,7 @@ class JobHandler extends Base
{
$payload = $job->getBody();
$className = $payload['class'];
$this->memoryCache->flush();
$this->prepareJobSession($payload['user_id']);
if (DEBUG) {
@ -48,7 +49,6 @@ class JobHandler extends Base
$worker = new $className($this->container);
call_user_func_array(array($worker, 'execute'), $payload['params']);
$this->memoryCache->flush();
}
/**