updated app cache handling