mirror of
https://github.com/avecms/AVE.cms.git
synced 2025-08-12 21:46:43 +00:00
v 3.24
This commit is contained in:
admin
admin.phpdocs.php
functions
index.phpinit.phplang
modules.phprubs.phpsettings.phpstart.phptemplates
css
documents
groups
js
main.tplrubs
_field_code.tpl_field_list.tpl_fields_list.tplcode.tplfield_template.tplfields.tplfields_groups.tplfields_list.tplform.tpllist.tplrules.tpltmpls.tpl
settings
edit_file.tplpagination_edit.tplsettings_case.tplsettings_countries.tplsettings_lang.tplsettings_main.tplsettings_pagination.tpl
templates
class
class.core.phpclass.database.phpclass.docs.phpclass.modules.phpclass.navigation.phpclass.request.phpclass.rubs.phpclass.settings.phpclass.thumbnail.phpclass.user.php
fields
functions
func.block.phpfunc.breadcrumbs.phpfunc.common.phpfunc.fields.phpfunc.helpers.phpfunc.navigation.phpfunc.parserequest.phpfunc.sysblock.php
inc
install
@ -29,6 +29,10 @@ function parse_block($id)
|
||||
{
|
||||
$cache_file = BASE_DIR . '/cache/sql/block/' . $id . '.cache';
|
||||
|
||||
// Если включен DEV MODE, то отключаем кеширование запросов
|
||||
if (defined('DEV_MODE') AND DEV_MODE)
|
||||
$cache_file = null;
|
||||
|
||||
if (! file_exists(dirname($cache_file)))
|
||||
mkdir(dirname($cache_file), 0766, true);
|
||||
|
||||
@ -48,7 +52,8 @@ function parse_block($id)
|
||||
LIMIT 1
|
||||
")->GetCell();
|
||||
|
||||
file_put_contents($cache_file,$return);
|
||||
if ($cache_file)
|
||||
file_put_contents($cache_file, $return);
|
||||
}
|
||||
|
||||
//-- парсим теги
|
||||
@ -84,9 +89,9 @@ function parse_block($id)
|
||||
|
||||
$gen_time = Debug::endTime('BLOCK_' . $id);
|
||||
|
||||
$GLOBALS['block_generate'][] = array('BLOCK_'. $id => $gen_time);
|
||||
$GLOBALS['block_generate']['BLOCKS'][$id] = $gen_time;
|
||||
|
||||
return $return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
Reference in New Issue
Block a user