use the versioncontrol API instead of accessing the cache database directly to make sure the cache is synced (fixes #3387)
Authored by: mgood 2006-10-17
Parent: [r3970]
Child: [r3972]