Yes, the Stats table is pretty much a cache of calculated fields. It avoids redoing the calculations on every page view.
The thing that makes me think it should be in the afterSave is the "don't repeat yourself" mantra. If I have to call updateStats after every Ratings->save it is not very DRY. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---
