Microsoft Content Management Server - mcms 2002: about outputcache

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > June 2004 > mcms 2002: about 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]

Author mcms 2002: about outputcache
zch

2004-06-28, 8:47 am

hi everyone,

I have put the following line in my template file:
<%@ OutputCache Duration="600" Location="Server"
VaryByParam="None" VaryByCustom="CMSPosting"%>
but all pages generated from the template are the
same during the cache time, Can anyone tell me why?
thanks a lot in advance!

zch

Stefan [MSFT]

2004-06-28, 8:47 am

Hi zch,

did you change the global class in the global.asax appropriatly as indicated
in the docs?

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"zch" <anonymous@discussions.microsoft.com> wrote in message
news:2203a01c45cde$ca151190$a301280a@phx
.gbl...
> hi everyone,
>
> I have put the following line in my template file:
> <%@ OutputCache Duration="600" Location="Server"
> VaryByParam="None" VaryByCustom="CMSPosting"%>
> but all pages generated from the template are the
> same during the cache time, Can anyone tell me why?
> thanks a lot in advance!
>
> zch
>



zch

2004-06-28, 8:47 am

hi, stefan

What should I change global class, Can you tell me?
I haven't do anything in global class.
thanks very much!

>-----Original Message-----
>Hi zch,
>
>did you change the global class in the global.asax

appropriatly as indicated
>in the docs?
>
>Cheers,
>Stefan.
>
>--
>This posting is provided "AS IS" with no warranties, and

confers no rights.
>
>MCMS FAQ:
>http://download.microsoft.com/download/4/2/5/4250f79a-

c3a1-4003-9272-2404e92bb76a/MCMS+2002+-+(complete)+FAQ.htm
>MCMS Blog:

http://blogs.msdn.com/stefan_gossner/category/4983.aspx
>MCMS Sample Code:
>http://www.gotdotnet.com/community/...les/Default.asp

x? ProductDropDownList=Content+Management+S
erver
>MCMS Whitepapers and other docs:
>http://blogs.msdn.com/stefan_gossne...e/2003/12/07/41

859.aspx
>--------------------------------
>
>
>"zch" <anonymous@discussions.microsoft.com> wrote in

message
> news:2203a01c45cde$ca151190$a301280a@phx
.gbl...
>
>
>.
>

Stefan [MSFT]

2004-06-28, 8:47 am

Hi zch,

as indicated in the MCMS docs you need to derive the global class from
CmsWebApplication rather than System.Web.HttpApplication
See here for details:

/Developing your MCMS site
/Site Development Using MCMS Functionality
/Improving MCMS Web Site Performance
/Enabling ASP.NET Output Caching
/Enabling ASP.NET Output Caching

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"zch" <anonymous@discussions.microsoft.com> wrote in message
news:220d401c45ceb$b965e830$a301280a@phx
.gbl...[vbcol=seagreen]
> hi, stefan
>
> What should I change global class, Can you tell me?
> I haven't do anything in global class.
> thanks very much!
>
> appropriatly as indicated
> confers no rights.
> c3a1-4003-9272-2404e92bb76a/MCMS+2002+-+(complete)+FAQ.htm
> http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> x? ProductDropDownList=Content+Management+S
erver
> 859.aspx
> message


2004-06-28, 8:47 am

hi stefan
Thanks very much, you are right,
I have global class to inherit
Microsoft.ContentManagement.Web.CmsHttpApplication
then it is work right!
Thanks again for your help!

zch

>-----Original Message-----
>Hi zch,
>
>did you change the global class in the global.asax

appropriatly as indicated
>in the docs?
>
>Cheers,
>Stefan.
>
>--
>This posting is provided "AS IS" with no warranties, and

confers no rights.
>
>MCMS FAQ:
>http://download.microsoft.com/download/4/2/5/4250f79a-

c3a1-4003-9272-2404e92bb76a/MCMS+2002+-+(complete)+FAQ.htm
>MCMS Blog:

http://blogs.msdn.com/stefan_gossner/category/4983.aspx
>MCMS Sample Code:
>http://www.gotdotnet.com/community/...les/Default.asp

x? ProductDropDownList=Content+Management+S
erver
>MCMS Whitepapers and other docs:
>http://blogs.msdn.com/stefan_gossne...e/2003/12/07/41

859.aspx
>--------------------------------
>
>
>"zch" <anonymous@discussions.microsoft.com> wrote in

message
> news:2203a01c45cde$ca151190$a301280a@phx
.gbl...
>
>
>.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com