ImageResolver
ImageResolver copied to clipboard
Removing memleaks + more options for the Utils
Majority of the proposed PR deals with proper handling of variables so that the garbage collector can easily do its job.
Besides the memleak-removal stuff, we added 2 more options for the Utils instance:
-
nocache
- iftrue
-ish, then the Utils instance will not cache anything (especially important for the case of saving the response fromsuperagent
, that leads to heavy memory consumption) -
timeout
- if present, it will be used against thesuperagent
Response, so that problematic links do not take too long to complete