changed cache code, added a different cache to settings