Added publish/unpublish and output caching