Reset countercaches

Hi,

I want to reset all the countercaches how to do it?
This includes ones with custom finders and calculated fields.

Greets

Since you have to specify each counterCache and the details of how they operate, I assume you will also have to write the seek-and-destroy methods to reset them. And design the trigger conditions for when they run. There isn’t really any magic to them that I’m aware of.

Without any details of your situation, your goals, or what you have tried, no more detailed answer can be made.

It would be easy to have a built in method in cakephp core that does this. I don’t want to have to write a custom piece of shell to reset every counter of every model. I think having a core function would be way eassier for everyone.