Committer: gariev
LJSUP-8850: Fix bug when memcache returns non-expected dataU trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/ljlib.pl =================================================================== --- trunk/cgi-bin/ljlib.pl 2011-05-19 10:21:15 UTC (rev 19086) +++ trunk/cgi-bin/ljlib.pl 2011-05-19 10:29:16 UTC (rev 19087) @@ -3590,5 +3590,9 @@ } LJ::run_hooks("startup"); +## Hook "startup" is run before apaches are forked. +## If a connection to memcached is created in the hook code, they must be disconnected, +## otherwise, several apache processes will share the same socket. +LJ::MemCache->disconnect_all; 1;