We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2c27d commit 629d481Copy full SHA for 629d481
lib/MetaCPAN/Web/Controller/Account/Favorite.pm
@@ -21,11 +21,6 @@ sub add : Local : Args(0) {
21
$res = $user->add_favorite($data)->get;
22
}
23
24
- # We need to purge if the rating has changes until the fav count
25
- # is moved from server to client side
26
- $c->purge_author_key( $data->{author} ) if $data->{author};
27
- $c->purge_dist_key( $data->{distribution} ) if $data->{distribution};
28
-
29
if ($json) {
30
$c->res->code(400) if ( $res->{error} );
31
$c->stash->{json}{success} = $res->{error} ? \0 : \1;
0 commit comments