OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.37k stars 1.12k forks source link

Possible re-compile or cashing issue #1178

Closed orchardbot closed 9 years ago

orchardbot commented 13 years ago

JonnyBoats created: https://orchard.codeplex.com/workitem/17349

I do not have a perfect repo case, but I believe this will work (at least some times).

Install Bertrand's CustomLayoutMachine theme (http://weblogs.asp.net/bleroy/archive/2010/12/14/switching-the-layout-in-orchard-cms.aspx) without the Filters directory. Run Orchard and you should see Layout.cshtml used for all pages.

Now copy the Filters directory to the server and refresh the page. It would seem that the filter is not being activated.

Now switch to an alternate theme and browse the website. Switch back to CustomLayoutMachine and the filter should now be working and alternate layouts being used.

I suspect a related issue may be that an edit to the Filters may not force a recompile.

orchardbot commented 13 years ago

@bleroy commented:

André: Is this a dynamic compilation issue?

orchardbot commented 13 years ago

@andrerod commented:

The problem here is that there is no modification to any of the files tracked. However, if the project file is updated when the filters directory is removed. and then updated again whent he filters directory is added this works and the dynamic compilation will kick in and update the theme.