diff --git a/docs/gotcha.txt b/docs/gotcha.txt index 3f94a4519..3e3c6e445 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -19,10 +19,6 @@ save you many hours of grief. * The core API has changed. Check docs/migration.txt for details. - * Due to the performance increase achieved by switching to DateTime we - no longer need date caching so the enableDateCache directive can - be removed from your config file. - * WebGUI now requires Apache2 with mod_perl2 so CGI, FastCGI, PerlEx, although never officially supported, are no longer possible. Making this change gave us more than 70% performance improvement diff --git a/docs/upgrades/upgrade_6.7.8-6.8.0.pl b/docs/upgrades/upgrade_6.7.8-6.8.0.pl index c190463eb..08c4fc9fe 100644 --- a/docs/upgrades/upgrade_6.7.8-6.8.0.pl +++ b/docs/upgrades/upgrade_6.7.8-6.8.0.pl @@ -13,11 +13,13 @@ use strict; use FileHandle; use File::Copy qw(cp); use Getopt::Long; +use Parse::PlainConfig; use WebGUI::Session; use WebGUI::SQL; use WebGUI::Asset; use WebGUI::Setting; use WebGUI::User; +use WebGUI::Utility; my $toVersion = "6.8.0"; my $configFile; @@ -36,8 +38,26 @@ addEnableAvatarColumn(); addSpectre(); addWorkflow(); addMatrix(); +updateConfigFile(); finish(); +#------------------------------------------------- +sub updateConfigFile { + print "\tUpdating config file.\n" unless ($quiet); + my $pathToConfig = '../../etc/'.$configFile; + my $conf = Parse::PlainConfig->new('DELIM' => '=', 'FILE' => $pathToConfig, 'PURGE'=>1); + my %newConfig; + foreach my $key ($conf->directives) { # delete unwanted stuff + unless (isIn($key,qw(enableDateCache scripturl))) { + $newConfig{$key} = $conf->get($key); + } + } + push(@{$newConfig{assets}}, "WebGUI::Asset::Wobject::Matrix"); + $conf->purge; + $conf->set(%newConfig); + $conf->write; +} + #------------------------------------------------- sub addMatrix { print "\tAdding Matrix Asset\n" unless ($quiet);