Fix cache clearing on snippet init.