Added follow up to #7588: Accesscheck for clearCache, credits Steffen Kamper