Skip to content

Commit

Permalink
If caching is not enabled, don't bother with hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed May 5, 2015
1 parent f558de5 commit 1471a78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Files/LocalFile.php
Expand Up @@ -84,6 +84,10 @@ function reloadContent()
*/
public function process()
{
if ($this->config->cache === false) {
return parent::process();
}

$hash = $this->path.'.'.md5_file($this->path);
$cache = Cache::get($hash);
if ($cache !== false) {
Expand Down

0 comments on commit 1471a78

Please sign in to comment.