reduced common method in cache widgets