added: Database index on userSession.expires field to speed up workflows
This commit is contained in:
parent
50231853bd
commit
81257b6b23
2 changed files with 13 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
|||
- fix: Users now have permission to add comments
|
||||
- fix: Username for comment poster is now shown correctly
|
||||
- fix: Slideshow now works
|
||||
- added: Database index on userSession.expires field to speed up workflows
|
||||
|
||||
7.5.7
|
||||
- fixed: HttpProxy mixes original site's content encoding with WebGUI's
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@ my $session = start(); # this line required
|
|||
removeOldGalleryColumns( $session );
|
||||
moveColumnsToGalleryFile( $session );
|
||||
moveCommentsToGalleryFile( $session );
|
||||
clearRSSCache($session);
|
||||
addUserSessionExpiresIndex($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -37,6 +39,16 @@ finish($session); # this line required
|
|||
# # and here's our code
|
||||
#}
|
||||
|
||||
#-------------------------------------------------
|
||||
sub addUserSessionExpiresIndex {
|
||||
my $session = shift;
|
||||
print "\tAdding index to userSession expires column..." unless $quiet;
|
||||
$session->db->write(
|
||||
"ALTER TABLE `userSession` ADD INDEX `expires` (`expires`)"
|
||||
);
|
||||
print " Done.\n" unless $quiet;
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
sub clearRSSCache {
|
||||
my $session = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue