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:
|
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.
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user