Can use a cache for xcal exports

This commit is contained in:
Laurent Destailleur 2009-05-04 20:39:17 +00:00
parent 3705cd5ba0
commit 2e2b3b4be4
2 changed files with 59 additions and 53 deletions

View File

@ -5,6 +5,7 @@ English Dolibarr changelog
For users:
- New: Can export commercial proposals
- New: Can use a cache for xcal exports.
For translators:
- Update some language files.

View File

@ -597,7 +597,12 @@ class ActionComm
if ($cachedelay)
{
// \TODO Check cache
$now = gmmktime();
if (filemtime($outputfile) > ($now - $cachedelay))
{
dol_syslog("ActionComm::build_exportfile file ".$outputfile." not older than now - cachedelay (".$now." - ".$cachedelay."). Build is canceled");
$buildfile = false;
}
}
if ($buildfile)