$cache doesn't exist.
Make sure that ->limit is defined.
[jan] Fix DAV client always using Digest authentication (Bug #13319).