|
Home > Archive > Microsoft Content Management Server > January 2005 > CMS OutputCache
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Donnie 2005-01-26, 5:55 pm |
| I am having issues with the OutputCache and CMS. If I use Output Caching the
performance is where I need it, but the problem is after I log in to view
secure content the returned page is the one without the secure content. To be
more specific I have a header control with a "Login" link on my template,
with OutputCaching turned on once I click the link and login the page
displays with the login link and it should display a Logout link. Also the
secure channels do not showup after loggin in until the cach has expired.
This is a problem for users trying to view secure content, once they login it
looks as though they are not logged in becuase it is displaying the cached
page. Any advice? Stefan?
| |
| Stefan [MSFT] 2005-01-27, 7:46 am |
| Hi Donnie,
you need to add CmsUser to your VaryByCustom attribute in your output cache
directive.
Cheers,
Stefan.
"Donnie" <Donnie@discussions.microsoft.com> wrote in message
news:D3B4CEA8-AE29-4375-A5B2-ED39635DA46F@microsoft.com...
> I am having issues with the OutputCache and CMS. If I use Output Caching
the
> performance is where I need it, but the problem is after I log in to view
> secure content the returned page is the one without the secure content. To
be
> more specific I have a header control with a "Login" link on my template,
> with OutputCaching turned on once I click the link and login the page
> displays with the login link and it should display a Logout link. Also the
> secure channels do not showup after loggin in until the cach has expired.
> This is a problem for users trying to view secure content, once they login
it
> looks as though they are not logged in becuase it is displaying the cached
> page. Any advice? Stefan?
| |
| Donnie 2005-01-27, 5:50 pm |
| Stefan,
I tried the following:
Added "public class Global : CmsHttpApplication" to the global.asax.cs file
Then added <%@ OutputCache Duration="300" Location="Server"
VaryByParam="None" VaryByCustom="CmsUser" %>
This had no effect, once I logged in and was redirected back to the main
page it was still showing the cached page.
Any suggestions?
"Stefan [MSFT]" wrote:
> Hi Donnie,
>
> you need to add CmsUser to your VaryByCustom attribute in your output cache
> directive.
>
> Cheers,
> Stefan.
>
>
> "Donnie" <Donnie@discussions.microsoft.com> wrote in message
> news:D3B4CEA8-AE29-4375-A5B2-ED39635DA46F@microsoft.com...
> the
> be
> it
>
>
>
| |
| Stefan [MSFT] 2005-01-27, 5:50 pm |
| Hi Donnie,
I tested on my box and here it works.
Something is different in your scenario.
You might want to open a support case for this if you can't figure it out.
Cheers,
Stefan.
"Donnie" <donnie.baxter@navy.mil> wrote in message
news:2AC30841-39D0-46F5-A6FB-FE0F04E94984@microsoft.com...
> Stefan,
> I tried the following:
>
> Added "public class Global : CmsHttpApplication" to the global.asax.cs
file[vbcol=seagreen]
>
> Then added <%@ OutputCache Duration="300" Location="Server"
> VaryByParam="None" VaryByCustom="CmsUser" %>
>
> This had no effect, once I logged in and was redirected back to the main
> page it was still showing the cached page.
>
> Any suggestions?
>
> "Stefan [MSFT]" wrote:
>
cache[vbcol=seagreen]
Caching[vbcol=seagreen]
view[vbcol=seagreen]
content. To[vbcol=seagreen]
template,[vbcol=seagreen]
the[vbcol=seagreen]
expired.[vbcol=seagreen]
login[vbcol=seagreen]
cached[vbcol=seagreen]
| |
| Donnie 2005-01-27, 5:50 pm |
| Thanks Stefan,
I figured it out, the MSDN library has "public class Global :
CmsHttpApplication" which is what I was trying. I then tried "public class
global : Microsoft.ContentManagement.Web.CmsHttpApplication" This worked, it
would have been nice is the Library had this information, thank goodness for
intellisense in VS.net
thanks for your help, BTW I have your book on order I am also working
with BAH on our project here. (Naval Personell Command)
"Stefan [MSFT]" wrote:
> Hi Donnie,
>
> I tested on my box and here it works.
> Something is different in your scenario.
>
> You might want to open a support case for this if you can't figure it out.
>
> Cheers,
> Stefan.
>
> "Donnie" <donnie.baxter@navy.mil> wrote in message
> news:2AC30841-39D0-46F5-A6FB-FE0F04E94984@microsoft.com...
> file
> cache
> Caching
> view
> content. To
> template,
> the
> expired.
> login
> cached
>
>
>
|
|
|
|
|