Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r17936: use a different approach to finding out ...

Committer: ailyin
use a different approach to finding out if we're profiling
U   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 ) = @_;
 

Tags: andy, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments