[CalendarServer-changes] [5257] CalendarServer/trunk/twistedcaldav
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 5 13:10:46 PST 2010
Revision: 5257
http://trac.macosforge.org/projects/calendarserver/changeset/5257
Author: sagen at apple.com
Date: 2010-03-05 13:10:43 -0800 (Fri, 05 Mar 2010)
Log Message:
-----------
Resource/location record updates now get reflected in memcached, and the location/resource service timeout is 1 minute.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/xmlfile.py
CalendarServer/trunk/twistedcaldav/stdconfig.py
Modified: CalendarServer/trunk/twistedcaldav/directory/xmlfile.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/xmlfile.py 2010-03-05 20:18:37 UTC (rev 5256)
+++ CalendarServer/trunk/twistedcaldav/directory/xmlfile.py 2010-03-05 21:10:43 UTC (rev 5257)
@@ -407,7 +407,10 @@
self._persistRecords(accountsElement)
+ # Force a cache update - both local and memcached
+ self.queryDirectory([recordType], self.INDEX_TYPE_GUID, guid)
+
class XMLDirectoryRecord(CachingDirectoryRecord):
"""
XML based implementation implementation of L{IDirectoryRecord}.
Modified: CalendarServer/trunk/twistedcaldav/stdconfig.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/stdconfig.py 2010-03-05 20:18:37 UTC (rev 5256)
+++ CalendarServer/trunk/twistedcaldav/stdconfig.py 2010-03-05 21:10:43 UTC (rev 5257)
@@ -53,7 +53,7 @@
DEFAULT_RESOURCE_PARAMS = {
"twistedcaldav.directory.xmlfile.XMLDirectoryService": {
"xmlFile": "resources.xml",
- "cacheTimeout": 30,
+ "cacheTimeout": 1,
"recordTypes" : ("locations", "resources"),
},
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100305/f6ea1e48/attachment.html>
More information about the calendarserver-changes
mailing list