Committer: sbelyaev
LJSUP-12940: Remove duplicating users from reposted list and fix counterU trunk/cgi-bin/LJ/Entry/Repost.pm
Modified: trunk/cgi-bin/LJ/Entry/Repost.pm =================================================================== --- trunk/cgi-bin/LJ/Entry/Repost.pm 2012-07-13 09:19:05 UTC (rev 22439) +++ trunk/cgi-bin/LJ/Entry/Repost.pm 2012-07-13 09:55:35 UTC (rev 22440) @@ -97,6 +97,14 @@ LJ::MemCache::delete("reposters_list_chunk:$journalid:$jitemid:$last_block_id"); # + # remove prev block too + # + if ($last_block_id > 0) { + $last_block_id--; + LJ::MemCache::delete("reposters_list_chunk:$journalid:$jitemid:$last_block_id") + } + + # # inc or add reposters counter # my $memcache_key_count = "reposted_count:$journalid:$jitemid";