Added basic cache function to weather extension