Skip to content

Commit

Permalink
#34 Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
dusta committed Jul 15, 2021
1 parent 7491dda commit fada565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ public function cache($adapter, $originalImage, $default = false)
$has = $this->manager->has($cacheAdapter);
if ($has == false
or ($has == true and $this->manager->getTimestamp($cacheAdapter) < strtotime(
"-" . $this->cache['life'] . " seconds"
))) {
"-" . $this->cache['life'] . " seconds"
))) {
/** @todo: Rewrite to update */
if ($has == true) {
$this->manager->delete($cacheAdapter);
Expand Down

0 comments on commit fada565

Please sign in to comment.