[CalendarServer-changes] [8648] CalendarServer/trunk/txdav/common/datastore/sql_legacy.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 10 11:46:44 PST 2012


Revision: 8648
          http://trac.macosforge.org/projects/calendarserver/changeset/8648
Author:   cdaboo at apple.com
Date:     2012-02-10 11:46:44 -0800 (Fri, 10 Feb 2012)
Log Message:
-----------
Make sure propfind cache invalidation occurs when sharing invites change.

Modified Paths:
--------------
    CalendarServer/trunk/txdav/common/datastore/sql_legacy.py

Modified: CalendarServer/trunk/txdav/common/datastore/sql_legacy.py
===================================================================
--- CalendarServer/trunk/txdav/common/datastore/sql_legacy.py	2012-02-10 19:45:52 UTC (rev 8647)
+++ CalendarServer/trunk/txdav/common/datastore/sql_legacy.py	2012-02-10 19:46:44 UTC (rev 8648)
@@ -1,6 +1,6 @@
 # -*- test-case-name: twistedcaldav.test.test_sharing,twistedcaldav.test.test_calendarquery -*-
 ##
-# Copyright (c) 2010-2011 Apple Inc. All rights reserved.
+# Copyright (c) 2010-2012 Apple Inc. All rights reserved.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -372,6 +372,9 @@
                 status=bindStatus,
                 message=record.summary
             )
+        
+        # Must send notification to ensure cache invalidation occurs
+        self._collection.notifyChanged()
 
 
     @classmethod
@@ -406,6 +409,9 @@
     def removeRecordForInviteUID(self, inviteUID):
         yield self._deleteBindByUID.on(self._txn, uid=inviteUID)
         yield self._deleteInviteByUID.on(self._txn, uid=inviteUID)
+        
+        # Must send notification to ensure cache invalidation occurs
+        self._collection.notifyChanged()
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120210/d2fb78f5/attachment.html>


More information about the calendarserver-changes mailing list