/** * Takes a computed ryzom time array and returns a SimpleXMLElement */ function ryzom_time_xml($rytime) { global $tick_cache_timeout; $out = ryzom_time_xml_without_cache($rytime); $filename = RYAPI_PATH . 'data/cache/game_cycle.ticks'; $cache = $out->addChild('cache'); $cache->addAttribute('created', filemtime($filename)); $cache->addAttribute('expire', filemtime($filename) + $tick_cache_timeout); return $out; }
/** * Takes a computed ryzom time array and returns a SimpleXMLElement */ function ryzom_time_xml($rytime) { return ryzom_time_xml_without_cache($rytime); }