adding smarty cache