Skip to content

Commit

Permalink
presence of cacheStorage is checked only in register(), not in rebuild()
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 2, 2017
1 parent 05483ef commit f23f888
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/RobotLoader/RobotLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ public function getIndexedClasses()
*/
public function rebuild()
{
$this->getCache()->save($this->getKey(), Nette\Utils\Callback::closure($this, 'rebuildCallback'));
if ($this->cacheStorage) {
$this->getCache()->save($this->getKey(), Nette\Utils\Callback::closure($this, 'rebuildCallback'));
} else {
$this->rebuildCallback();
}
}


Expand Down

0 comments on commit f23f888

Please sign in to comment.