modified parsing of the content field
added caching and a part to delete the cache when a resource is updated