implemented caching decorator for use with class functions that take a url in and return their output