Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 536 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 536 Rev 564
Line 10... Line 10...
10
	private $cacheActif;
10
	private $cacheActif;
Line 11... Line 11...
11
	
11
	
12
	public function __construct($service, $projetNom, $serviceNom, $cacheActif) {
12
	public function __construct($service, $projetNom, $serviceNom, $cacheActif) {
13
		$this->cacheActif = $cacheActif;
13
		$this->cacheActif = $cacheActif;
14
		$this->service = $service;
-
 
15
		$this->config = $config;
14
		$this->service = $service;
16
		$this->chargerDureeCache();
15
		$this->chargerDureeCache();
17
		$this->projetNom = $projetNom;
16
		$this->projetNom = $projetNom;
18
		$this->serviceNom = $serviceNom;
-
 
19
		
17
		$this->serviceNom = $serviceNom;
20
		$this->cache = new CacheSimple(array("stockage_chemin" => Config::get("chemincache"), "duree_de_vie" => $this->dureecache));
-
 
21
		
18
		$this->cache = new CacheSimple(array("mise_en_cache" => true, "stockage_chemin" => Config::get("chemincache"), "duree_de_vie" => $this->dureecache));
Line 22... Line 19...
22
	}
19
	}
23
 
20
 
24
	public function chargerDureeCache() {
21
	public function chargerDureeCache() {