revert modification date since this is fixed in p.a.caching now

This commit is contained in:
Elizabeth Leddy 2012-02-25 11:59:30 +01:00
parent 873300d347
commit 2971974f26
1 changed files with 1 additions and 5 deletions

View File

@ -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):