Var $is_insert not correctly defined

Var `$is_insert`, used in the caching process, is incorrectly defined. Simple fix.