.NETGURU
Cached modules: How to tell CachedPortalModuleControl that a Module content has changed ?
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngibuyspy' list.


Uwe Lesta

Hi to all off you,

Can someone tell me :
How to tell CachedPortalModuleControl that a Module content has changed ?

or

In other words How to delete the cache for a specified module ?

--

Kind regards

Uwe
Click here to reveal e-mail address

Reply to this message...
 
    
Phil Orion
I do not know the exact answer but I know where to start the investigation...
Within the desktopdefault.aspx you'll find the following code block
The If Then Else tests for the condition --if the module is cached?
Under the Else Condition ( the module is cached) , you'll have to find some way to test if the module has been updated...
If the module requires updating then disregard the cache and generate the module as in the "If" portion of the code.

For Each _moduleSettings In _portalSettings.ActiveTab.Modules

Dim parent As Control = Page.FindControl(_moduleSettings.PaneName)

' If no caching is specified, create the user control instance and dynamically
' inject it into the page. Otherwise, create a cached module instance that
' may or may not optionally inject the module into the tree
If _moduleSettings.CacheTime = 0 Then
Dim portalModule As PortalModuleControl = CType(Page.LoadControl(_moduleSettings.DesktopSrc), PortalModuleControl)

portalModule.PortalId = _portalSettings.PortalId
portalModule.ModuleConfiguration = _moduleSettings

parent.Controls.Add(portalModule)
Else
Dim portalModule As New CachedPortalModuleControl()

portalModule.PortalId = _portalSettings.PortalId
portalModule.ModuleConfiguration = _moduleSettings

parent.Controls.Add(portalModule)
End If
' Dynamically inject separator break between portal modules
parent.Controls.Add(New LiteralControl("<" & "br" & ">"))
parent.Visible = True
Next _moduleSettings

Phil
http://www.orionsmith.com

"Uwe Lesta" <Click here to reveal e-mail address> wrote in message news:687743@aspngibuyspy...
[Original message clipped]

Reply to this message...
 
 
System.Web.UI.LiteralControl
System.Web.UI.Page




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification