teplates: cache depends on production/nonproduction