[core] Fix drop cache decorator.