Hi Andrea,
I had a quick check, but sorry if this is already reported - I know that redirecting is being looked at for 3.80 and want to report an issue that's been uncovered by our Redirect Plugin that will help develop this area:
In the UrlRecordService
line216
public virtual UrlRecordForCaching GetBySlugCached(string slug)
line96
protected virtual IList<UrlRecordForCaching> GetAllUrlRecordsCached()
They load IsActive "false" records into the cache - logically this doesn't make sense, but this can be a confusion as nopCommerce doesn't make the record inactive when deleting a product, so how to did they get inactive? Maybe a previous developer, I'm not sure, but the logic is still there - I believe it would be best not to load the IsActive "false" records into the cache - We're adding a work-around to the plugin to deal with clients who do/have done this. Not sure what your take on this would be?
It seems a product was created, had it's seo name changed and then was deleted - leaving the record? the isactive record is loaded into the cache but the product is deleted -
but logically the IsActive false records actaully should be loaded into the cache as they are then 302 redirected by nopCommerce - but this product is gone. It does get confusing :-)
Thank you,