deleting datacache and adding its functionality into analytics/cache_functions.py