Issue #2203231 by japerry: Add cache flag to entity info hook