Fix cache key clearing for _get_pages_of_type(), fixes build errors.