Override the page strategies

Posted by Community Admin on 04-Aug-2018 04:14

Override the page strategies

All Replies

Posted by Community Admin on 08-May-2017 00:00

I am new to development in Sitefinity (using MVC and Visual Studio), and every time we start debugging, we have to wait two minutes or more before we can start debugging. I am told that is because Sitefinity is compiling all the views, surely there is a way to get around this?

While looking for a solution, I found this page in the docs:

docs.sitefinity.com/for-developers-override-the-page-strategies

It seems to suggest that it allows you to winnow down the number of pages that are compiled on startup. When I put this code into our app, the code builds, and a breakpoint in BootstrapperInitialized is hit, but the GetPageIds method is never hit.

I was wondering if there is anything else I need to do in addition to the above code to get it to work?

This thread is closed