ADDED: Page cache clear on publish mechanism to keep cache current
UPDATED: Refactored and cleaned up code
ADDED: PHPDoc