Fix RESULTS_CACHE_SIZE setting

The setting RESULTS_CACHE_SIZE was being ignored, and could not be
set in any way.

Fixes issue #671 on Github.