Skip to content

Commit

Permalink
refactor: move cache duration set
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Jan 13, 2025
1 parent 3806bbd commit 1439236
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Assets/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ class Cache implements CacheInterface
protected $cacheDir;

/** @var int */
protected $duration = 31536000;
protected $duration;

public function __construct(Builder $builder, string $pool = '')
{
$this->builder = $builder;
$this->config = $builder->getConfig();
$this->pool = $pool;
$this->cacheDir = Util::joinFile($this->config->getCachePath(), $pool);
$this->duration = 31536000; // 1 year
}

/**
Expand Down

0 comments on commit 1439236

Please sign in to comment.