From 2e536ba1dc043568ef443f2177657e43527d35b1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 29 May 2010 02:25:18 +0800 Subject: Display pkgdb info on package info page --- FedoraClient.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'FedoraClient.php') 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'])) { -- cgit