Fixes #41: Updates cached_applications properly