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);