madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22302: LJSUP-12627: Not working counter of Writ...

Committer: sbelyaev
LJSUP-12627: Not working counter of Writer's Block
U   trunk/cgi-bin/LJ/Entry.pm
Modified: trunk/cgi-bin/LJ/Entry.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry.pm	2012-06-21 14:40:23 UTC (rev 22301)
+++ trunk/cgi-bin/LJ/Entry.pm	2012-06-21 14:55:10 UTC (rev 22302)
@@ -2383,8 +2383,9 @@
            "AND propid IN ($del_ids)", undef, $u->{'userid'}, $jitemid) if $del_ids;
 
     if ($kill_mem) {
-        LJ::MemCache::delete([$uid,"logprop2:$uid:$jitemid"]) if $kill_mem;
-        $singletons{$uid}->{$jitemid} = undef if $singletons{$uid};
+        LJ::MemCache::delete([$uid,"logprop2:$uid:$jitemid"]);
+        my $cached_entry =  $singletons{$uid}->{$jitemid};
+        $cached_entry->{_loaded_props} = 0 if $cached_entry;
     }
 }
 

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