wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17680: LJSUP-7052. For new version of Landing P...

Committer: gprochaev
LJSUP-7052. For new version of Landing Page we should use a new memkeys.

U   trunk/cgi-bin/LJ/Vertical.pm
U   trunk/cgi-bin/LJ/Widget/Search.pm
Modified: trunk/cgi-bin/LJ/Vertical.pm
===================================================================
--- trunk/cgi-bin/LJ/Vertical.pm	2010-11-13 12:26:24 UTC (rev 17679)
+++ trunk/cgi-bin/LJ/Vertical.pm	2010-11-15 04:39:21 UTC (rev 17680)
@@ -681,32 +681,32 @@
     my $self = shift;
     my $id = shift;
 
-    return [ $id, "vert:$id" ] if $id;
-    return [ $self->{vert_id}, "vert:$self->{vert_id}" ];
+    return [ $id, "vert2:$id" ] if $id;
+    return [ $self->{vert_id}, "vert2:$self->{vert_id}" ];
 }
 
 sub memkey_vertname {
     my $self = shift;
     my $name = shift;
 
-    return "vertname:$name" if $name;
-    return "vertname:$self->{name}";
+    return "vertname2:$name" if $name;
+    return "vertname2:$self->{name}";
 }
 
 sub memkey_verturl {
     my $self = shift;
     my $url = shift;
 
-    return "vertname:$url" if $url;
-    return "vertname:$self->{url}";
+    return "vertname2:$url" if $url;
+    return "vertname2:$self->{url}";
 }
 
 sub memkey_rules {
     my $self = shift;
     my $id = shift;
 
-    return [ $id, "vertrules:$id" ] if $id;
-    return [ $self->{vertid}, "vertrules:$self->{vertid}" ];
+    return [ $id, "vertrules2:$id" ] if $id;
+    return [ $self->{vertid}, "vertrules2:$self->{vertid}" ];
 }
 
 sub set_memcache {
@@ -732,7 +732,7 @@
 
 sub entries_memkey {
     my $self = shift;
-    return [ $self->{vertid}, "vertentries:$self->{vertid}" ];
+    return [ $self->{vertid}, "vertentries2:$self->{vertid}" ];
 }
 
 sub clear_entries_memcache {

Modified: trunk/cgi-bin/LJ/Widget/Search.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Search.pm	2010-11-13 12:26:24 UTC (rev 17679)
+++ trunk/cgi-bin/LJ/Widget/Search.pm	2010-11-15 04:39:21 UTC (rev 17680)
@@ -77,6 +77,7 @@
         ) or die "Can't open template: $!";
 
         my $uri = BML::get_uri();
+        $uri =~ s#(.*?)tag/.*#$1#;
         my $vertical = LJ::Vertical->load_by_url ($uri);
 
         $uri .= "/" if $uri !~ m#/$#; ## add end slash if not exist

Tags: livejournal, pm, wisest-owl
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