ChangeSet ID: 26461
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2006/07/11 15:35:43
Modified files:
. : .htaccess
Log message:
Chris Morgan <cmorgan(a)alum.wpi.edu>
Ensure that session.gc_probability is 1 and set session.gc_divisor to something reasonable for a reasonably
heavily accessed site like appdb. This change solves the mystery of why we had millions of unexpired sessions
in session_list and should make the session_list cron cleanup job superfluous.
Patch: http://cvs.winehq.org/patch.py?id=26461
Old revision New revision Changes Path
1.6 1.7 +8 -0 appdb/.htaccess
Index: appdb/.htaccess
diff -u -p appdb/.htaccess:1.6 appdb/.htaccess:1.7
--- appdb/.htaccess:1.6 11 Jul 2006 20:35:43 -0000
+++ appdb/.htaccess 11 Jul 2006 20:35:43 -0000
@@ -13,3 +13,11 @@ php_value short_open_tag 0
php_value register_long_arrays 0
php_value magic_quotes_gpc 0
php_flag zlib.output_compression on
+
+# make sure gc_probability is non-zero, we want php to take care of
+# session cleanup for us
+php_value session.gc_probability 1
+
+# lower the probability of calling garbage collection
+# the appdb gets so many hits we want to increase the divisor above 100
+php_value session.gc_divisor 2000