From 2971974f266b244c5a4854dd0a45bec32d64e64c Mon Sep 17 00:00:00 2001 From: Elizabeth Leddy Date: Sat, 25 Feb 2012 11:59:30 +0100 Subject: [PATCH] revert modification date since this is fixed in p.a.caching now --- plone/app/discussion/comment.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plone/app/discussion/comment.py b/plone/app/discussion/comment.py index 08a5e7f..14822fd 100644 --- a/plone/app/discussion/comment.py +++ b/plone/app/discussion/comment.py @@ -206,14 +206,10 @@ def notify_content_object(obj, event): """Tell the content object when a comment is added """ content_obj = aq_parent(aq_parent(obj)) - # set the modified date and reindex the item accordingly - # so that 304s work correctly. This means that adding a comment - # effectively counts as modifying the content type. - content_obj.setModificationDate() content_obj.reindexObject(idxs=('total_comments', 'last_comment_date', 'commentators', - 'modified')) + )) def notify_content_object_deleted(obj, event):