Fix cache stats updating when Unit state is changed
Properly refresh stats for directories, translation projects, languages and projects