mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 10:38:08 +01:00
Add index to database session handler for session expiry
Greatly improves garbage collection performance Fixes: #4574
This commit is contained in:
parent
69d5b49525
commit
54ed823aba
@ -478,8 +478,9 @@ CREATE TABLE session (
|
||||
session_id varchar(250) NOT NULL default '',
|
||||
session_expires int(10) unsigned NOT NULL default 0,
|
||||
session_user int(10) unsigned default NULL,
|
||||
session_data mediumtext NOT NULL,
|
||||
PRIMARY KEY (session_id)
|
||||
session_data longtext NOT NULL,
|
||||
PRIMARY KEY (session_id),
|
||||
INDEX (session_expires)
|
||||
) ENGINE=MyISAM;
|
||||
# --------------------------------------------------------
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user