Added so that pages & posts are invalidated from cache when their type is updated. Resolves issue #173