Skip to content
Unverified Commit aab646a9 authored by Morris Jobke's avatar Morris Jobke
Browse files

Update system addressbook card only when there was a change based on a cached etag



Due to our old and new hook system the card dav backend listens to old and new hooks. This triggers this code multiple times and always causes an update. With this change we cache the etag during a request and only trigger the update if the etag has changed. This does not catches all not needed updates, but it does not need another round trip to the database and still covers most cases where multiple attributes are updated during one single request.

Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent 09b9f94c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment