pourquoi tu gères pas toi meme ton cache en PHP ?! comme ca tu ne dépends pas de la config d'apache
si ca peut t'aider, voici un fichier php cache.class.php
<?php
if (!defined('__CLASS_CACHE__'))
{
define('__CLASS_CACHE__', true);
class Cache
{
var $fichier = '';
var $delai = 0;
function Cache($file, $time)
{
$this->fichier = $file;
$this->delai = $time;
if (is_file($this->fichier))
{
if (time()- filemtime($this->fichier)<$this->delai)
{
echo file_get_contents($this->fichier);
exit;
}
}
ob_start(array(&$this, 'make'));
}
function make($content)
{
$file = fopen($this->fichier, 'w');
fwrite($file, $content);
fclose($file);
return $content;
}
}
}
?>
et voici un exemple d'utilisation :
<?php
require_once('./cache.class.php');
$cache = new Cache(dirname(__FILE__).'/index.cch', 10);
echo date('d/m/Y H:i:s');
?>