Committer: nnikulochkina
LJSUP-13931: Implement interaction with rating systemU trunk/cgi-bin/LJ/Pay/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/SelfPromo.pm =================================================================== --- trunk/cgi-bin/LJ/Pay/SelfPromo.pm 2012-10-26 12:35:20 UTC (rev 12833) +++ trunk/cgi-bin/LJ/Pay/SelfPromo.pm 2012-10-26 12:48:30 UTC (rev 12834) @@ -1158,6 +1158,14 @@ $class->SUPER::raise_error($code, %args); } +sub clear_memcache { + my ( $class, $slot ) = @_; + + if ($slot->region() eq 'cyr' && $slot->type() eq 'entry') { + LJ::MemCacheProxy::delete('rating.posts.top25.journalids.cyr.visitors.sp.cp'); + } +} + 1; __END__