...
We found out that the changes to the Garbage Collection don't require rebuilding the Nop.Web project. It is possible to edit the Nop.Web.runtimeconfig.json file in the root folder of nopCommerce and change the "System.GC.Server" property to false. The file should look like this:
...
Regards,
Anton
We found out that the changes to the Garbage Collection don't require rebuilding the Nop.Web project. It is possible to edit the Nop.Web.runtimeconfig.json file in the root folder of nopCommerce and change the "System.GC.Server" property to false. The file should look like this:
{
"runtimeOptions": {
"tfm": "netcoreapp2.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "2.1.0"
},
"configProperties": {
"System.GC.Server": false
}
}
}
...
Regards,
Anton
Confirmed this made a huge difference on a 4.1 site on A2 Hosting. No re-compile required, just edit the .json file and restart the IIS application pool. The 4.1 site is much closer to our 3.9 site (also on A2, for comparison).
FYI, don't forget that first-time page loads will still be "slow" since they are being compiled. Even with that, these first-time loads are much faster than they were before the .json file edit. Going back to pages already compiled are almost instant now. Will have to see ow this change performs/degrades over time.
Also FYI to those somewhat-new to nopCommerce, don't be afraid to turn off any features, plugins, and options you don't need, as disabling each one should give back a fraction of load on the system. Many can be turned off through the admin screens (e.g. auto-complete on search bar), but as you are more comfortable, can also look at disabling certain elements in the HTML (and thus possibly javscript as well). As example, removing the Search bar made a difference on our home page load (even before this .json file edit).
Edit: So sorry, really didn't mean to double-post :-(