Committer: sbelyaev
LJSUP-13883: Journal pages optimizaiton : stage 1U trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm =================================================================== --- trunk/cgi-bin/LJ/S2.pm 2012-10-15 20:30:58 UTC (rev 23139) +++ trunk/cgi-bin/LJ/S2.pm 2012-10-15 21:27:38 UTC (rev 23140) @@ -4196,10 +4196,11 @@ my $newentry_etypeid = 'LJ::Event::JournalNewEntry'->etypeid; my $newentry_sub = $this->{__newentry_sub}->{$journalu->id} || undef; - if ($remote) { + if ($remote && !$newentry_sub) { ($newentry_sub) = $remote->has_subscription( journalid => $journalu->id, event => "JournalNewEntry", require_active => 1,); + $this->{__newentry_sub}->{$journalu->id} = $newentry_sub; }