Rails cache_counter not decrementing? -


I have a cash counter setup for the postal class on the comments field, there are many comments in the post, and a comment of a post

If I add a new comment to a post and save, the counter increases, but if I delete a personal comment, the counter is not touched.

Rail 2.3.2

Thank you!

How are you removing the comment?

You should know that ActiveRecord :: base delete and delete are not the same thing, due to deletion, there will be no callback, so the cache The counter will not update


Comments