Questions tagged with countercache

1 answer

0 votes

Asked by TheWorldofDan, on 21/3/10 in

counterCache

I'm using counterCache to track the number of chapters that have been posted to their related stories.

This all works fine, apart from the fact that when the chapter_count field in the database gets updated, the modified field for that record does...

0 answers

0 votes

Asked by NomadCat, 1 day, 7 hours ago in

counterCache

Can I get counterCache to work on a table that's not directly related to another one?

Forum hasMany Topic and Topic hasMany Post

I want to update post_count in Forum but Post has to go through Topic to relate to Forum.

Thank you,

Andrei

0 answers

0 votes

Asked by Alfred, on 18/1/10 in

counterCache and Tree behavior

I have Post and Category models. Post belongs to Category, and Category has many Posts. Category behaves like a tree. Now if I put counter cache on belongsTo relationship of Post model I will get number of posts in counter field of categories...

2 answers

0 votes

Asked by Lemon, on 31/10/09 in

How can i disable counterCache?

I need to create 1000 model records and i dont want counterCache to update the count in the parent model each time i add a record.

Is there an easy way to disable counterCache and enable it again afterwards?

1 answer

0 votes

Asked by pantopita, on 13/6/10 in

Problem with counting records

Hello,

I'm currently working on app for Voters registering and it's pretty much completed.

I have 5 tables in database: voters, locations, categories, users, statuses.

Table voter is in "belongs to" relationship with other tables and tables have...

<< previous next >>