- 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,12 @@
|
|||
- fix [ 1281516 ] Undefined subroutine &WebGUI::Asset::File::quote runHourly
|
||||
- fix [ 1281430 ] www_restoreList should be in AssetTrash.pm
|
||||
- fix help links on the Asset add/edit forms
|
||||
- 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
|
||||
|
||||
|
||||
6.7.3
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ use Getopt::Long;
|
|||
use WebGUI::Session;
|
||||
use WebGUI::SQL;
|
||||
use WebGUI::Asset;
|
||||
use WebGUI::Setting;
|
||||
|
||||
my $toVersion = "6.7.4";
|
||||
my $configFile;
|
||||
|
|
@ -14,10 +15,18 @@ start();
|
|||
updatePageTemplates();
|
||||
addDebug();
|
||||
fixFutureDates();
|
||||
makeQueriesFaster();
|
||||
|
||||
finish();
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
sub makeQueriesFaster {
|
||||
print "\tMaking queries a little faster.\n" unless ($quiet);
|
||||
WebGUI::SQL->write("alter table assetData add index assetId_url_revisionDate_status_tagId (assetId,url,revisionDate,status,tagId)");
|
||||
WebGUI::SQL->write("alter table asset add index className_assetId_state (className,assetId,state)");
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
sub fixFutureDates {
|
||||
print "\tFixing end dates which appear too far in the future.\n" unless ($quiet);
|
||||
|
|
@ -27,8 +36,8 @@ sub fixFutureDates {
|
|||
#-------------------------------------------------
|
||||
sub addDebug {
|
||||
print "\tAdding more debug options.\n" unless ($quiet);
|
||||
WebGUI::SQL->write("insert into settings values ('debugIp','')");
|
||||
WebGUI::SQL->write("insert into settings values ('showPerformanceIndicators','0')");
|
||||
WebGUI::Setting::add("debugIp","");
|
||||
WebGUI::Setting::add("showPerformanceIndicators","0");
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue