Committer: ailyin
use a different approach to finding out if we're profilingU trunk/cgi-bin/LJ/MemCache.pm
Modified: trunk/cgi-bin/LJ/MemCache.pm =================================================================== --- trunk/cgi-bin/LJ/MemCache.pm 2010-12-15 05:57:47 UTC (rev 17935) +++ trunk/cgi-bin/LJ/MemCache.pm 2010-12-15 07:14:27 UTC (rev 17936) @@ -262,7 +262,7 @@ $conn->enable_compress(1); } -if ( !$LJ::DISABLED{'memcache_profile'} ) { +if ( $ENV{'LJ_MEMCACHE_PROFILE'} ) { *_profile = sub { my ( $funcname, $key, $result ) = @_;