Refactor

Refactor cache helpers, tags and posts controllers.