aboutsummaryrefslogtreecommitdiffstats
path: root/include/session.php
diff options
context:
space:
mode:
authorThomas Willingham <beardyunixer@beardyunixer.com>2014-11-03 15:33:59 +0000
committerThomas Willingham <beardyunixer@beardyunixer.com>2014-11-03 15:33:59 +0000
commit9984ff37e5df237ccdd0169387ade070babfd666 (patch)
treeae777c116881ea610924f420333039993a6beac1 /include/session.php
parent1d923d2b0d6b6b83c57d3ca257addcd1080f7f44 (diff)
downloadvolse-hubzilla-9984ff37e5df237ccdd0169387ade070babfd666.tar.gz
volse-hubzilla-9984ff37e5df237ccdd0169387ade070babfd666.tar.bz2
volse-hubzilla-9984ff37e5df237ccdd0169387ade070babfd666.zip
innodb issue
Diffstat (limited to 'include/session.php')
-rw-r--r--include/session.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/session.php b/include/session.php
index b531688e2..8500e2cd3 100644
--- a/include/session.php
+++ b/include/session.php
@@ -84,8 +84,9 @@ function ref_session_destroy ($id) {
function ref_session_gc($expire) {
q("DELETE FROM session WHERE expire < %d", dbesc(time()));
- q("OPTIMIZE TABLE session");
- return true;
+ if (! get_config('system','innodb'))
+ q("OPTIMIZE TABLE session");
+ return true;
}
$gc_probability = 50;