madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r23076: LJSUP-13883: Journal pages optimizaiton ...

Committer: sbelyaev
LJSUP-13883: Journal pages optimizaiton : stage 1
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-10-09 12:41:25 UTC (rev 23075)
+++ trunk/cgi-bin/LJ/User.pm	2012-10-09 12:54:34 UTC (rev 23076)
@@ -5495,8 +5495,13 @@
 sub timezone {
     my $u = shift;
 
+    return $u->{'__timezone_offset'} 
+            if exists $u->{'__timezone_offset'};
+    
     my $offset = 0;
     LJ::get_timezone($u, \$offset);
+
+    $u->{'__timezone_offset'} = $offset;
     return $offset;
 }
 

Tags: livejournal, madeon, pm, sbelyaev
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