madeon (madeon) wrote in changelog,
madeon
madeon
changelog

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

Committer: sbelyaev
LJSUP-13883: Journal pages optimizaiton : stage 1
U   trunk/cgi-bin/LJ/Entry.pm
U   trunk/cgi-bin/LJ/S2/RecentPage.pm
Modified: trunk/cgi-bin/LJ/Entry.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry.pm	2012-10-19 14:54:28 UTC (rev 23177)
+++ trunk/cgi-bin/LJ/Entry.pm	2012-10-22 08:01:38 UTC (rev 23178)
@@ -891,6 +891,18 @@
     return $subject;
 }
 
+sub subject_drop_html {
+    my $self = shift;
+    $self->_load_text unless $self->{_loaded_text};
+    return $self->{droped_subject} if $self->{droped_subject};
+
+    my $subject = $self->{subject};
+    my $subject_droped_html = LJ::Text->drop_html($subject);
+    $self->{droped_subject}= $subject_droped_html;
+    return $subject_droped_html;
+}
+
+
 sub subject_text
 {
     my $self = shift;
@@ -1516,7 +1528,7 @@
 
     my %meta;
 
-    $meta{'title'} = LJ::Text->drop_html( $self->subject_raw );
+    $meta{'title'} = $self->subject_drop_html;
 
     $meta{'description'} = eval {
         my $text = $self->event_raw;

Modified: trunk/cgi-bin/LJ/S2/RecentPage.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/RecentPage.pm	2012-10-19 14:54:28 UTC (rev 23177)
+++ trunk/cgi-bin/LJ/S2/RecentPage.pm	2012-10-22 08:01:38 UTC (rev 23178)
@@ -122,9 +122,7 @@
 
     die $err if $err;
 
-    # preload js for sharing
-    my @prefetch_keys =
-            map { [$u->{'userid'}, ,"s2:cache:share:js:" . $u->{'userid'} . ":$_"] } @itemids ;
+    my @prefetch_keys = ();
 
     ### load the log properties
     my %logprops = ();

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