Addon configuration.

* Replaces #1914.
* Adds basic unit tests for `updateCache` method.