[fix] generator caching