summaryrefslogtreecommitdiffstats
path: root/FedoraClient.php
diff options
context:
space:
mode:
Diffstat (limited to 'FedoraClient.php')
-rw-r--r--FedoraClient.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/FedoraClient.php b/FedoraClient.php
index 516f54b..fe2d26c 100644
--- a/FedoraClient.php
+++ b/FedoraClient.php
@@ -35,7 +35,11 @@ abstract class FedoraClient {
protected $cache;
function __construct ($url, array $options) {
- $this->cache = new Cache_Lite(array('memoryCaching'=>true, 'automaticSerialization'=>true));
+ $dir = "/tmp/cachelite-".posix_getlogin()."/";
+ @mkdir($dir);
+ $this->cache = new Cache_Lite(array('memoryCaching' => true,
+ 'cacheDir' => $dir,
+ 'automaticSerialization'=> true));
$this->url = $url;
if (isset($options['agent']) && !empty($options['agent'])) {