CakePHP, Using CounterCache to keep track of Comments
Saturday, May 31st, 2008CounterCache is one of the new Core Model Behaviors in CakePHP 1.2 and it's an absolute life saver for working with hasMany relationships where you want to OrderBy one of the children. The basic idea behind a CounterCache is to keep tabs on how 'children' a specific model has, this is ...