diff options
-rw-r--r-- | include/session.php | 5 |
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; |