aboutsummaryrefslogtreecommitdiffstats
path: root/include/session.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-03 14:51:28 -0800
committerfriendica <info@friendica.com>2014-11-03 14:51:28 -0800
commitfdb9b9d52ed1959213a67b1313b617d0e4eb057f (patch)
tree99941674eaaef28467e610be302a584dcbd210b4 /include/session.php
parenta6d8c3193a6fc243f3e516118c793e5b871b8247 (diff)
parent9984ff37e5df237ccdd0169387ade070babfd666 (diff)
downloadvolse-hubzilla-fdb9b9d52ed1959213a67b1313b617d0e4eb057f.tar.gz
volse-hubzilla-fdb9b9d52ed1959213a67b1313b617d0e4eb057f.tar.bz2
volse-hubzilla-fdb9b9d52ed1959213a67b1313b617d0e4eb057f.zip
Merge https://github.com/friendica/red into pending_merge
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;