HG-144: Caching for top contributors

@macbre can you take a look, please
Use ``$this->mockGlobalVariable`` instead of changing a global variable directly