summaryrefslogtreecommitdiffstats
path: root/FedoraClient.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-05-29 02:25:18 +0800
committertrasher <trasher@x-tnd.be>2010-05-29 16:44:58 +0800
commit2e536ba1dc043568ef443f2177657e43527d35b1 (patch)
tree75c1313390319511d296f73dd8346dec79e9e1fe /FedoraClient.php
parentd4db37b22442597d3caef906b97b47f7e289184a (diff)
Display pkgdb info on package info page
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'])) {