madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22300: JSUP-12627: Not working counter of Write...

Committer: sbelyaev
JSUP-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 12:05:18 UTC (rev 22299)
+++ trunk/cgi-bin/LJ/Entry.pm	2012-06-21 12:17:23 UTC (rev 22300)
@@ -2382,7 +2382,10 @@
     $u->do("DELETE FROM logprop2 WHERE journalid=? AND jitemid=? ".
            "AND propid IN ($del_ids)", undef, $u->{'userid'}, $jitemid) if $del_ids;
 
-    LJ::MemCache::delete([$uid,"logprop2:$uid:$jitemid"]) if $kill_mem;
+    if ($kill_mem) {
+        LJ::MemCache::delete([$uid,"logprop2:$uid:$jitemid"]) if $kill_mem;
+        $singletons{$uid}->{$jitemid} = undef if $singletons{$uid};
+    }
 }
 
 # <LJFUNC>

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