Skip to content

Commit 629d481

Browse files
committed
remove cache purging when updating favorites
The API now purges on favorite changes, so there's no reason for the front end to do the same thing.
1 parent fa2c27d commit 629d481

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/MetaCPAN/Web/Controller/Account/Favorite.pm

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ sub add : Local : Args(0) {
2121
$res = $user->add_favorite($data)->get;
2222
}
2323

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-
2924
if ($json) {
3025
$c->res->code(400) if ( $res->{error} );
3126
$c->stash->{json}{success} = $res->{error} ? \0 : \1;

0 commit comments

Comments
 (0)