madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r12493: LJSUP-13301: Main page optimization

Committer: sbelyaev
LJSUP-13301: Main page optimization
U   trunk/cgi-bin/LJ/SUP.pm
Modified: trunk/cgi-bin/LJ/SUP.pm
===================================================================
--- trunk/cgi-bin/LJ/SUP.pm	2012-08-20 07:31:51 UTC (rev 12492)
+++ trunk/cgi-bin/LJ/SUP.pm	2012-08-20 07:41:55 UTC (rev 12493)
@@ -26,7 +26,10 @@
 {
     my $class = shift;
     my $u = shift;
-    return $u && $u->in_class('sup_user') && !$u->in_class('sup_optout');
+    return $u->{sup_enabled} if exists $u->{sup_enabled};
+    my $enabled = $u && $u->in_class('sup_user') && !$u->in_class('sup_optout');
+    $u->{sup_enabled} = $enabled;
+    return $enabled;
 }
 
 sub is_sup_enabled_caps

Tags: ljcom, 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