summaryrefslogtreecommitdiffstats
path: root/FedoraClient.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-05-28 20:25:18 +0200
committerRemi Collet <fedora@famillecollet.com>2010-05-28 20:25:18 +0200
commit450d53ef1f48c1fc913d81603103e86a3c08bc83 (patch)
tree75c1313390319511d296f73dd8346dec79e9e1fe /FedoraClient.php
parent5b1352c533fc867026f4b47d3de124388819e885 (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'])) {