Assembly: EPiServer (in EPiServer.dll) Version: 8.0.0
Clear both the page type cache as well as the DataFactory and IPermanentLinkMapper cache.
[ObsoleteAttribute("The PageType cache management is now a responsibility of the PageTypeRepository implementation.")] public static void ClearCache()
This needs to be called when changing page types that are in use for pages on the site.