// index from smarty cache and compile