The cache doc is inconsistent : the cache ttl is 60s, not 3600s

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1568 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-07-27 06:38:58 +00:00
parent 9d3e7c987f
commit e93aacecbc

View File

@@ -1,7 +1,10 @@
<?php
/** This class permit to cache the ouptut of a code. If the cache is already
available, use it.
It resend the headers as the ouptut send them */
It resend the headers as the ouptut send them
Use it by :
$c = new cacheoutput ("URL");
Don't forget to define a variable or the cache saved is always empty */
class cacheoutput
{
/** Record if the saving of pages is on going */
@@ -17,7 +20,7 @@ class cacheoutput
/**
@param string $id The cache identifier
@param integer|null $ttl The cache Time to Leave in seconds (3600s by
@param integer|null $ttl The cache Time to Leave in seconds (60s by
default)
@param string|null $method The cache method to use */
public function __construct ($id, $ttl=60, $method="file")