Fix unit test
Fix warning in homecache
Update cache before post hooks