add .cache class attribute