A general purpose caching Snippet for MODx Revolution