From 09c0f60816556340800c80ac29dd1634076d8576 Mon Sep 17 00:00:00 2001 From: Jonathan Marshall Date: Fri, 14 Nov 2014 10:58:20 +0200 Subject: [PATCH] Use system temp directory. --- src/OpenBuildings/Monetary/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenBuildings/Monetary/Cache.php b/src/OpenBuildings/Monetary/Cache.php index e4dfff5..2f32b1c 100644 --- a/src/OpenBuildings/Monetary/Cache.php +++ b/src/OpenBuildings/Monetary/Cache.php @@ -34,7 +34,7 @@ public function cache_driver() if ( ! $this->_cache) { $adapter = new DCache_Adapter\File( - realpath(__DIR__.'../../../'.static::CACHE_DIR) + sys_get_temp_dir() . DIRECTORY_SEPARATOR . static::CACHE_DIR ); $adapter->setOption('ttl', static::CACHE_LIFETIME); $this->_cache = new DCache\Cache($adapter);