| @@ 125-129 (lines=5) @@ | ||
| 122 | $xml_file = sprintf('%sinfo.xml', $component_path); |
|
| 123 | $cache_file = sprintf('./files/cache/editor/dr_%s.%s.php', $drComponentName, $lang_type); |
|
| 124 | // Return information after including it after cached xml file exists |
|
| 125 | if(file_exists($cache_file) && file_exists($xml_file) && filemtime($cache_file) > filemtime($xml_file)) |
|
| 126 | { |
|
| 127 | include($cache_file); |
|
| 128 | return $xml_info; |
|
| 129 | } |
|
| 130 | // Return after parsing and caching if the cached file does not exist |
|
| 131 | $oParser = new XmlParser(); |
|
| 132 | $xml_doc = $oParser->loadXmlFile($xml_file); |
|
| @@ 730-735 (lines=6) @@ | ||
| 727 | $cache_file = sprintf('./files/cache/editor/%s.%s.php', $component, $lang_type); |
|
| 728 | ||
| 729 | // Include and return xml file information if cached file exists |
|
| 730 | if(file_exists($cache_file) && file_exists($xml_file) && filemtime($cache_file) > filemtime($xml_file)) |
|
| 731 | { |
|
| 732 | include($cache_file); |
|
| 733 | ||
| 734 | return $xml_info; |
|
| 735 | } |
|
| 736 | ||
| 737 | $oParser = new XmlParser(); |
|
| 738 | $xml_doc = $oParser->loadXmlFile($xml_file); |
|
| @@ 134-138 (lines=5) @@ | ||
| 131 | // If the problem by comparing the cache file and include the return variable $widget_info |
|
| 132 | $cache_file = sprintf(_XE_PATH_ . 'files/cache/widget/%s.%s.cache.php', $widget, Context::getLangType()); |
|
| 133 | ||
| 134 | if(file_exists($cache_file)&&filemtime($cache_file)>filemtime($xml_file)) |
|
| 135 | { |
|
| 136 | @include($cache_file); |
|
| 137 | return $widget_info; |
|
| 138 | } |
|
| 139 | // If no cache file exists, parse the xml and then return the variable. |
|
| 140 | $oXmlParser = new XmlParser(); |
|
| 141 | $tmp_xml_obj = $oXmlParser->loadXmlFile($xml_file); |
|
| @@ 273-277 (lines=5) @@ | ||
| 270 | // If the problem by comparing the cache file and include the return variable $widgetStyle_info |
|
| 271 | $cache_file = sprintf(_XE_PATH_ . 'files/cache/widgetstyles/%s.%s.cache.php', $widgetStyle, Context::getLangType()); |
|
| 272 | ||
| 273 | if(file_exists($cache_file)&&filemtime($cache_file)>filemtime($xml_file)) |
|
| 274 | { |
|
| 275 | @include($cache_file); |
|
| 276 | return $widgetStyle_info; |
|
| 277 | } |
|
| 278 | // If no cache file exists, parse the xml and then return the variable. |
|
| 279 | $oXmlParser = new XmlParser(); |
|
| 280 | $tmp_xml_obj = $oXmlParser->loadXmlFile($xml_file); |
|