I'm trying to insert the CDN link for images (of products and categories).
I tried editing in the page: "Librarias / Nop.Services / Media / PictureService.cs":
//protected virtual string GetThumbUrl(string thumbFileName, string storeLocation = null)
protected virtual string GetThumbUrl(string thumbFileName, string storeLocation = "cdn-img.r.worldssl.net")
storeLocation = !string.IsNullOrEmpty(storeLocation)
var url = storeLocation + "images/thumbs/";
After these changes I recompiled in Release and then posted on the server.
I deleted the cache, restarted the application and the Application pools on the server.
The result is that nothing has changed. All images always point, as before, to the URL of the site.
Where am I wrong?