diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 811f3d33..5854883d 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -267,6 +267,9 @@ class DataController extends Zend_Controller_Action */ function timelineAction() { + $fn="time.xml"; + if (!file_exists($fn) || (time()-filemtime($fn)>3600*24)) + { $dateformat="D M j Y G:i:s O"; $md = new MetadataTable(); $db=$md->getAdapter(); @@ -286,6 +289,7 @@ class DataController extends Zend_Controller_Action $fp=fopen('time.xml','w'); fwrite($fp,$timexml); fclose($fp); + } //$this->_helper->layout->disableLayout(); } /*