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

[livejournal] r17980: LJSUP-7570. We need to be able to move c...

Committer: gprochaev
LJSUP-7570. We need to be able to move categories from our verticals to other verticals.

U   trunk/cgi-bin/LJ/Browse.pm
Modified: trunk/cgi-bin/LJ/Browse.pm
===================================================================
--- trunk/cgi-bin/LJ/Browse.pm	2010-12-20 10:10:34 UTC (rev 17979)
+++ trunk/cgi-bin/LJ/Browse.pm	2010-12-21 05:35:09 UTC (rev 17980)
@@ -603,6 +603,13 @@
         next unless $row;
 
         $obj->absorb_row($row);
+
+        $obj->preload_children;
+
+        $obj->set_memcache;
+
+        $singletons{$obj->{catid}} = $obj;
+
         delete $need{$obj->{catid}};
     }
 
@@ -626,14 +633,17 @@
         # and update singleton (request cache)
         $obj->absorb_row($row);
 
+        $obj->preload_children;
+
         # set in memcache
         $obj->set_memcache;
 
+        # update request cache
+        $singletons{$row->{catid}} = $obj;
+
         # and delete from %need for error reporting
         delete $need{$obj->{catid}};
 
-        $obj->preload_children;
-
     }
 
     # weird, catids that we couldn't find in memcache or db?

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