- Added cache to settings which increased performance by .02 seconds per
page. - Added user cache which increased performance by more than .1 seconds per page. - Added some new indicies to make asset queries .01 to .1 seconds faster per query. - fix [ 1274488 ] Visitors language not recognized 6.7.2
This commit is contained in:
parent
1ca2a2718b
commit
62d1c58ae4
11 changed files with 230 additions and 89 deletions
|
|
@ -20,6 +20,7 @@ use WebGUI::Icon;
|
|||
use WebGUI::International;
|
||||
use WebGUI::Privilege;
|
||||
use WebGUI::Session;
|
||||
use WebGUI::Setting;
|
||||
use WebGUI::Style;
|
||||
use WebGUI::SQL;
|
||||
use WebGUI::URL;
|
||||
|
|
@ -279,8 +280,7 @@ sub www_saveSettings {
|
|||
next;
|
||||
}
|
||||
unless ($key eq "op") {
|
||||
$session{setting}{$key} = $value;
|
||||
WebGUI::SQL->write("update settings set value=".quote($value)." where name='$key'");
|
||||
WebGUI::Setting::set($key,$value);
|
||||
}
|
||||
}
|
||||
return www_editSettings();
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ use WebGUI::FormProcessor;
|
|||
use WebGUI::HTMLForm;
|
||||
use WebGUI::HTTP;
|
||||
use WebGUI::Session;
|
||||
use WebGUI::SQL;
|
||||
use WebGUI::Setting;
|
||||
use WebGUI::Style;
|
||||
use WebGUI::User;
|
||||
|
||||
|
|
@ -91,10 +91,10 @@ sub www_setup {
|
|||
$f->submit;
|
||||
$output .= $f->print;
|
||||
} elsif ($session{form}{step} eq "3") {
|
||||
WebGUI::SQL->write("update settings set value=".quote(WebGUI::FormProcessor::text("companyName"))." where name='companyName'");
|
||||
WebGUI::SQL->write("update settings set value=".quote(WebGUI::FormProcessor::url("companyURL"))." where name='companyURL'");
|
||||
WebGUI::SQL->write("update settings set value=".quote(WebGUI::FormProcessor::email("companyEmail"))." where name='companyEmail'");
|
||||
WebGUI::SQL->write("delete from settings where name='specialState'");
|
||||
WebGUI::Setting::set('companyName',WebGUI::FormProcessor::text("companyName"));
|
||||
WebGUI::Setting::set('companyURL',WebGUI::FormProcessor::url("companyURL"));
|
||||
WebGUI::Setting::set('companyEmail',WebGUI::FormProcessor::email("companyEmail"));
|
||||
WebGUI::Setting::remove('specialState');
|
||||
WebGUI::HTTP::setRedirect($session{env}{SCRIPT_NAME});
|
||||
return "";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue