Can use a cache for xcal exports
This commit is contained in:
parent
3705cd5ba0
commit
2e2b3b4be4
@ -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.
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user