Issue Details (XML | Word | Printable)

Key: FLM-1745
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mariusz Kryński
Reporter: Borys Musielak
Votes: 0
Watchers: 0
Operations

Attach file to this issue
Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
Filmaster

Cache doesn't get invalidated after adding comments to articles

Created: 10/Dec/11 01:25 AM   Updated: 19/Apr/12 01:43 PM
Component/s: Walls and activities
Affects Version/s: None
Fix Version/s: 2.4 (current default)

Time Tracking:
Not Specified

Issue Links:
Duplicate
 


 Description  « Hide
When I look at http://filmaster.pl/kokpit/?f=articles I see articles with 0 comments. When I click on the articles I see sometimes many comments below them. Something is wrong with cache invalidation.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Mariusz Kryński added a comment - 18/Apr/12 01:05 PM
Activity.number_of_comments is not updated properly somewhere. Following statements show activities with bad number of comments:

select id, created_at from useractivity_useractivity where number_of_comments>0 and (id,number_of_comments) not in (select object_id, count(*) from threadedcomments_threadedcomment where content_type_id=39 group by object_id) order by id desc;

select id, created_at from useractivity_useractivity where number_of_comments=0 and id in (select object_id from threadedcomments_threadedcomment where content_type_id=39) order by id desc;