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: For users:
- New: Can export commercial proposals - New: Can export commercial proposals
- New: Can use a cache for xcal exports.
For translators: For translators:
- Update some language files. - Update some language files.

View File

@ -597,7 +597,12 @@ class ActionComm
if ($cachedelay) 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) if ($buildfile)