move cache defenition into local_settings