Remove unnecessary cache refreshes from the Google Contacts backend
authorPhilip Withnall <philip@tecnocode.co.uk>
Sat, 20 Nov 2010 23:22:58 +0000 (23:22 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Wed, 19 Jan 2011 12:09:48 +0000 (12:09 +0000)
commit792e6311ecd533be86e3d84e5aa3fda485fd9d91
tree81a5e27c8e56812f1afdaed935a4d0590c2b5f19
parent09d48280933da2c783d37a8d322775d871a3c2ea
Remove unnecessary cache refreshes from the Google Contacts backend

We shouldn't refresh the cache immediately after authenticating for two
reasons:
 • If it fails, its error gets conflated with any errors from the
   authentication process.
 • We only need to update the cache if a view connects to the backend (and
   the backend consequently goes "live").

We shouldn't refresh the cache before getting a contact or set of contacts
because this will only ever cause a cache refresh if the refresh timeout has
been reached, which would have already caused a refresh in the timeout
handler.
addressbook/backends/google/e-book-backend-google.c