Rename all the datas to data
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2512 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -49,20 +49,20 @@ class cacheoutput
|
||||
|
||||
ob_start ();
|
||||
$this->saving = true;
|
||||
// The datas are sent automatically
|
||||
// The data are sent automatically
|
||||
}
|
||||
|
||||
/** End of saving the datas in cache */
|
||||
/** End of saving the data in cache */
|
||||
public function __destruct ()
|
||||
{
|
||||
// Force the path because it return to / in the destructor
|
||||
chdir ($this->cacheCWD);
|
||||
if ($this->saving === true)
|
||||
{
|
||||
// Do the saving of the datas
|
||||
$datas = array ("content"=>ob_get_contents (),
|
||||
// Do the saving of the data
|
||||
$data = array ("content"=>ob_get_contents (),
|
||||
"headers"=>headers_list ());
|
||||
$this->cache->write ($this->id, $datas, $this->ttl);
|
||||
$this->cache->write ($this->id, $data, $this->ttl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user