Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r21543: LJSUP-11581: Change LJ::load_user_props(...

Committer: anazarov
LJSUP-11581: Change LJ::load_user_props() implementation to use LJ::load_user_props_multi()
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-03-26 11:42:18 UTC (rev 21542)
+++ trunk/cgi-bin/LJ/User.pm	2012-03-26 11:52:56 UTC (rev 21543)
@@ -6850,12 +6850,9 @@
             my $handled_props = $groups->{$handler};
 
             foreach my $u (values %$users) {
-                my $propmap_memc = {
-                    %propkeys,
-                    %{ $handler->fetch_props_memcache($u, $handled_props) },
-                };
+                my $propmap_memc = $handler->fetch_props_memcache($u, $handled_props);
 
-                _extend_user_object($u, $propmap_memc);
+                _extend_user_object($u, { %propkeys, %$propmap_memc });
 
                 my @load_from_db = grep { !exists $propmap_memc->{$_} }
                                    @$handled_props;

Tags: anazarov, livejournal, nfokz, pm
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