Fix tests on Jenkins

Move default CACHE settings from local.py-dist to base.py so that
they're available for Jenkins tests.

Bug 845904