daemon-rewrite/mysql: Fix cache not being cleared