Precompile Razor Views

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
Hi,

I am currently trying to optimize our highly customized nopCommerce 3.4 solution,
were we have roughly 1200 visitors per hour at peak times. When I use a NuGet package
that adds second level caching to the entity framework there is no conceivable
difference in page load speeds. This leads me to the conclusion that mostly the view
rendering needs optimization. I hence tried to pre-compile views with no success:

- When publishing the option "Precompile during publishing", configured to not merge
  assemblies, I get a successful build. But when the shop is opened I get an error
  stating that @Html.Action( "ViewTopicBlock", ...) was not pre-compiled.
  
- When merged into a single assembly the publishing fails stating that the "Nop.Plugin
  .DiscountRules.CustomerRoles.dll" was not found.
  
- Using Razor Generator I also get errors about dll's that weren't found.

Has anybody ever got pre-compiled views to work with nopCommerce?
Any help / suggestions would be appreciated :-)

Florian
9 years ago
florian.ru wrote:


Has anybody ever got pre-compiled views to work with nopCommerce?
Any help / suggestions would be appreciated :-)

Florian


Hi Florian,

Which version of nopCommerce do you use?
6 years ago
Hi,
I also have the same issue.

Precompiled views works except Plugins views are not precompiled and app throws an error when such view is requested.
Has anybody resolved an issue how to precompile plugins views to improve performance?

Any help would be appreciated.
5 years ago
precompile should be the first class option, especially with asp.net core 2.1, super fast startup.
5 years ago
I agree, have you made any progress? This is the main bottle-neck for our application right now.
We are utilizing version 4.10, and first page load of each page is significantly slower as it has to compile the views.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.