madeon (madeon) wrote in changelog,
madeon
madeon
changelog

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

Committer: sbelyaev
LJSUP-13883: Journal pages optimizaiton : stage 1
U   trunk/cgi-bin/LJ/Share.pm
Modified: trunk/cgi-bin/LJ/Share.pm
===================================================================
--- trunk/cgi-bin/LJ/Share.pm	2012-10-24 09:24:31 UTC (rev 23190)
+++ trunk/cgi-bin/LJ/Share.pm	2012-10-24 12:20:34 UTC (rev 23191)
@@ -79,16 +79,7 @@
 
     my $cache_key;
     if ( my $entry = delete $opts->{'entry'} ) {
-        unless (%$opts) {
-            $cache_key = [$entry->journalid,
-                        's2:cache:share:js:' . 
-                        $entry->journalid . ":" . $entry->jitemid];
-
-            my $data = LJ::MemCacheProxy::get($cache_key);
-            return $data if $data;
-        }
-
-        $opts->{'title'}        = LJ::ejs( LJ::Text->drop_html($entry->subject_raw) );
+        $opts->{'title'}        = LJ::ejs( $entry->subject_drop_html );
         $opts->{'url'}          = $entry->url;
 
         if ($opts->{'title'}) {
@@ -103,7 +94,6 @@
     my $result_text = 
         qq{<script type="text/javascript">LJShare.link($opts_out);</script>};
 
-    LJ::MemCacheProxy::set($cache_key, $result_text, 15 * 60) if $cache_key;
     return $result_text;
 }
 

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