[FIX] --dev mode crashes on read_template ormcache invalidation