Suppression fonction inutile
This commit is contained in:
parent
f7a6902c09
commit
27b8cdb503
@ -26,33 +26,6 @@ class Cache
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Pour des apelles statics.
|
||||
*
|
||||
* @param unknown_type $action
|
||||
* @param unknown_type $siret
|
||||
* @param unknown_type $id
|
||||
*/
|
||||
public function getCacheOBJ($action, $siret, $id)
|
||||
{
|
||||
$filename = APPLICATION_PATH.'/../cache/pages/'.$action.'-'.$siret.'-'.$id.'.tpl';
|
||||
if (file_exists($filename)) {
|
||||
$dateFile = filemtime($filename);
|
||||
$now = mktime(date('G'), date('i'), date('s'), date("m") , date("d"), date("Y"));
|
||||
$maxTime = mktime(
|
||||
date('G',$dateFile) + 8,
|
||||
date('i',$dateFile),
|
||||
date('s',$dateFile),
|
||||
date("m",$dateFile),
|
||||
date("d",$dateFile),
|
||||
date("Y",$dateFile));
|
||||
if( $now < $maxTime ) {
|
||||
return (unserialize(base64_decode(file_get_contents($filename))));}
|
||||
return false;
|
||||
}
|
||||
return (false);
|
||||
}
|
||||
|
||||
public function setBlock($array)
|
||||
{
|
||||
//Ajout des blocs sérialisés
|
||||
|
Loading…
x
Reference in New Issue
Block a user