Fixes #5189: cache handler accepts view names with hyphens