added: to config:
parameter: ezc_max_elements maximum number for elements through the whole template (ezc) default: 50000 parameter: ezc_max_loop_elements maximum number of each [for] loop default: 5000 (from ezc generator) added: to Request class: time_t start_time; tm start_tm; they are set when a request starts git-svn-id: svn://ttmath.org/publicrep/winix/trunk@806 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -45,6 +45,7 @@ void insert_page_run(Info & i)
|
||||
insert_page_cur += 1;
|
||||
|
||||
info.run_content.Clear();
|
||||
info.ezc_gen.SetMax(config->ezc_max_elements, config->ezc_max_loop_elements);
|
||||
info.ezc_gen.Generate(info.run_content, *pat);
|
||||
item_print_content(i.out, info.run_content.Str(), info.item.content_type);
|
||||
|
||||
|
@@ -292,6 +292,7 @@ void item_run(Info & i)
|
||||
Ezc::Pattern * p = pattern_cacher.GetPattern(cur->request->item);
|
||||
|
||||
item_run_content.Clear();
|
||||
ezc_generator.SetMax(config->ezc_max_elements, config->ezc_max_loop_elements);
|
||||
ezc_generator.Generate(item_run_content, *p);
|
||||
|
||||
item_print_content(i.out, item_run_content.Str(), cur->request->item.content_type);
|
||||
@@ -652,6 +653,7 @@ void item_tab_run(Info & i)
|
||||
{
|
||||
Ezc::Pattern * p = pattern_cacher.GetPattern(cur->request->item_tab[item_index]);
|
||||
item_run_content.Clear();
|
||||
ezc_generator.SetMax(config->ezc_max_elements, config->ezc_max_loop_elements);
|
||||
ezc_generator.Generate(item_run_content, *p);
|
||||
item_print_content(i.out, item_run_content.Str(), cur->request->item_tab[item_index].content_type);
|
||||
}
|
||||
|
@@ -122,9 +122,14 @@ Ezc::Pattern * p = 0;
|
||||
|
||||
|
||||
if( p )
|
||||
{
|
||||
content_gen.SetMax(config->ezc_max_elements, config->ezc_max_loop_elements);
|
||||
content_gen.Generate(i.out, *p);
|
||||
}
|
||||
else
|
||||
{
|
||||
log << log1 << "Templates: content: there are not any patterns";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user