Save & View not showing changes

Vote:
 

I have an issue where certain pages within the CMS are not showing the latest changes made when hitting Save & View without publishing.

I am using standard EPiServer property controls, I have turned off caching, overidden the SetCachePolicy to explicitly set the cache headers to no-cache with an expiry date in the past. I have examined the cache headers within the http header when viewing the page changes and everything is set as expected.

A number of the pages are using the same template, however on certain pages I am able to see changes after saving on one page but not the other, regardless of what I do, I cannot view the changes until the page is published.

I'm at a dead end trying to resolve this, if anyone can shed any light on this it would be much appreciated,

Thanks in advance,

Stephen

#51872
Jun 27, 2011 15:01
Vote:
 

have you tried to output DateTime.Now, and CurrentPage.PageLink

could maybe be your web browser caching?

#51874
Jun 27, 2011 16:09
Vote:
 

I have seen this once before. Then it was problem with the page template, it fetched the current version of the page, i.e. the published version. So the saved version never showed up in preview mode.

#51875
Jun 27, 2011 16:12
Vote:
 

Thanks for the suggestion, I have turned off all caching, it's definately not caching on the client. From further investigation it looks like it could be a problem with the SimpleAddressToInternal method used during rewriting, when attempting to find the internal address by using the external address mapping, the workID is dropped from the querystring parameter, I'm just working out exactly where it's going wrong.

#51881
Jun 27, 2011 17:25
Vote:
 

*UPDATE*
The problem is indeed with the SimpleAddressToInternal, I am overriding this method with one minor change, dropping the trailing slash from the url, as this does not match the simple address correctly when using PageQuickSearchDB().FindByExternalUrl and the path has a trailing slash.

When the simple address to internal address mapping is found it is not carrying across the work id with the page id querystring parameter, hence not returning the correct version of the page.

#51884
Jun 27, 2011 18:13
Vote:
 

Hi Steven!

Which version of CMS are you using?

#51891
Jun 28, 2011 7:23
Vote:
 

I'm using CMS 5 R2

#51912
Jun 28, 2011 13:04
Vote:
 

Ok.

Pretty sure that we fixed this bug for the CMS 6 R2 version.

Regards
Linus Ekström

#51926
Jun 29, 2011 7:28
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.