Calling PartCacheRead works sometimes, other times not
- From: "JD" <yazoo@xxxxxxxxxxxxxxxx>
- Date: Thu, 29 Nov 2007 12:27:22 -0500
I have a web part that is calling PartCacheRead and PartCacheWrite to cache
some data. I am using Storage.Shared in the call. I am using MOSS 2007.
If I add the web part to a subsite, the web part works fine. It puts data
in the cache and pulls it out, no problem.
But if I add the web part to the MOSS portal home page (which uses the
Publishing feature, if that matters), the call to PartCacheRead always
returns a null.
It makes no sense. As a test, I even changed RenderWebPart() to call
PartCacheWrite to put some data in the cache (which does not return an
error), then immediately call PartCacheRead to get it back out - no dice -
it returns null.
I drop the same web part on another page and it works fine.
Any clues as to why?
.
- Follow-Ups:
- RE: Calling PartCacheRead works sometimes, other times not
- From: Wei Lu [MSFT]
- RE: Calling PartCacheRead works sometimes, other times not
- Prev by Date: MOSS development environment questions
- Next by Date: RE: Calling PartCacheRead works sometimes, other times not
- Previous by thread: MOSS development environment questions
- Next by thread: RE: Calling PartCacheRead works sometimes, other times not
- Index(es):
Relevant Pages
|