Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Page Template Cache Issue View modes: 
User avatar
Member
Member
snk1324 - 11/3/2011 9:38:32 AM
   
Page Template Cache Issue
Really strange issue that seems to have just started on one of our sites. We are running 5.5R2 4237 (hotfix 35).

We created a new page, with a new template. On this page are a few different repeaters showing about 5-10 items each.

The client requested a couple changes so, we made those changes.
Then a few additional changes were made, and a little while later a few more changes were made.

Now, when we load the page we see various "versions" of the page. I say "versions" since we are not using workflow or versioning on this site. With each refresh of the browser we get a slightly different look of the page.

I checked in the database, and the CMS_PageTemplate table has the correct layout, and the correct Webparts. Additionally, the CMS_CssStylesheet table has the correct CSS code. However, when we load the page, we get various incarnations of the page template, and css.

Also, worthy to note is that editing the page layout from Development->Page Templates results in seeing various "versions" of the layout code in the editor. The same has been true of the webpart layout as well.

I know it has something to do with cache, but I am not sure where it is coming from. I did one additional test as well. I cleared the cache from Admin->System, and then I went into the Debug section, and viewed the Cached items. The page does not show up. Repeated reloading of the page, and the page does not show in the cached items. Eventually the item shows up in the cached items, but I am not sure if it is from me loading the page, or someone else loading the page.

I have tried using the Clear Cache, and restart application from the Admin->System. Additionally, I have tried recycling the application pool and restarting the website from within IIS, and nothing seems to affect it.

Does anyone have any ideas on what to check?

User avatar
Member
Member
snk1324 - 11/3/2011 1:10:45 PM
   
RE:Page Template Cache Issue
Ok, some additional notes on this. I believe that we have found the issue. The site in question is a very high traffic site. Several thousand page views per minute. What appears to be happening is that a change is made to the template, but the cached copy from before the change is persisting around for a while in the cache before this change is being re-loaded into the cache.

What appears to work is make the change to the page layout, and then clear the cache a few times, and then the change sticks. What we may end up doing for changes to this site in the future is shutting of caching entirely for the duration that we are making changes, and then turning it back on.

Seems that we should not have to do this, but it may be our only choice. Has anyone else experienced cache related issues on high traffic sites?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/10/2011 2:45:20 AM
   
RE:Page Template Cache Issue
Hi,
What are the application pool settings set in your IIS?

The Maximum number of worker processes on the Performance tab must be set to 1. If you set a higher value, the worker processes will not be synchronized and Kentico CMS website will not work correctly. This may lead to unexpected caching of content and system objects: application pool settings.

Best regards,
Juraj Ondrus

User avatar
Member
Member
snk1324 - 11/10/2011 7:37:25 AM
   
RE:Page Template Cache Issue
Thanks! We did have this set to 3. Set back to 1 now.