Do not access the database during cache clearing