This is because the current way that it is used makes the server create a new CDN object every time it uploads or manages an image. If it were a function the server wouldn't have to create and store an object just to throw it away immediately.
Conclusion:
This would save some memory and processing power in the long run.
This is because the current way that it is used makes the server create a new CDN object every time it uploads or manages an image. If it were a function the server wouldn't have to create and store an object just to throw it away immediately.
Conclusion: This would save some memory and processing power in the long run.