diff --git a/.travis.yml b/.travis.yml index b8a14d0..238a492 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,9 @@ php: - '5.6' - '7.0' - '7.1' - - 'hhvm' install: - composer update script: - ./vendor/bin/phpunit --coverage-clover ./tests/Logs/clover.xml after_script: -- php vendor/bin/php-coveralls -v \ No newline at end of file +- php vendor/bin/php-coveralls -v diff --git a/src/Objects/CacheDrivers/DOFileCacheDriver.php b/src/Objects/CacheDrivers/DOFileCacheDriver.php index cc26a17..6e48c9d 100644 --- a/src/Objects/CacheDrivers/DOFileCacheDriver.php +++ b/src/Objects/CacheDrivers/DOFileCacheDriver.php @@ -18,7 +18,7 @@ public function __construct() [ 'cacheDirectory' => '/tmp/php-uk-bank-holidays-cache/', 'gzipCompression' => true, - ] + ] ); } @@ -27,6 +27,7 @@ public function set($key, $value) $cacheItem = $this->cache->getItem($key); $cacheItem->set($value); $cacheItem->expiresAfter(self::CACHE_EXPIRY_IN_SECONDS); + $this->cache->save($cacheItem); } public function get($key)