git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6677 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2009-06-27 13:51:33 +00:00
parent 9d7a921f3b
commit 06452b0541

View file

@ -28,8 +28,11 @@
$oModuleModel = &getModel('module');
$mid = Context::get('mid');
$cache_file = sprintf('%sfiles/cache/wiki/%d.xml', _XE_PATH_,$this->module_srl);
FileHandler::writeFile($cache_file, $this->loadWikiTreeList($this->module_srl));
if($this->grant->write_document || !file_exists($cache_file)) {
FileHandler::writeFile($cache_file, $this->loadWikiTreeList($this->module_srl));
}
print FileHandler::readFile($cache_file);
Context::close();