I have an issue with Permalink. Let me explain my current server topology as below :
I have two web servers (1 for CMS, 1 for Content Delivery) and single database. Both servers connect to same database server. The purpose of separate web servers is, CMS server only serve admin / content authoring, and the other is for public serving (can not access admin page).
The issue is, when I create a content from CMS server, I could access the content using its permalink from the server. But, when I tried to accessed it from Content Delivery server by its permalink, it shows Not Found page. When I tried to access from Content Delivery server by its content display Url (like "/Contents/Item/Display/27"), it works.
Another weird behavior is, when I tried to get Url of the new created content programmatically using UrlHelper.ItemDisplayUrl() upon IContentManager.Query result, it return the content display Url instead of Permalink one (while the older contents returned permalink url).
But, If I do an IIS reset on my Content Delivery Server, the permalink will works. Please help.
For additional information : I installed Orchard Cache module.
It seems a normal behavior. Since the CD instance is not signaled that a new content item is created, it keeps serving the context that it is already cached. So, you have to invalidate the context of CD server so as to request a fresh copy from database.