Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Question on cache and user profiles View modes: 
User avatar
Member
Member
matt-awg - 1/15/2014 1:47:43 PM
   
Question on cache and user profiles
I have a page that allows users to edit their own profiles (a custom version of the user contribution web part) and another page where anyone can view their profile details. When a user changes their profile, the change does not appear on the front end page for 10 minutes. I assume this is due to cache (see 10 minutes in cache settings below) but I am just wondering if this is the expected behavior? Shouldn't a change invalidate the cache or is the cache mechanism not able to do that? Would I have to turn off cache on the profile display page to prevent this behavior? I would hate to do that and lose the benefits of caching just for the occasional user updating their profile and complaining that it did not display right away on the front end.

I already checked my app pool settings as per this article:
http://devnet.kentico.com/Forums.aspx?forumid=45&threadid=23910
and I have max worker processes = 1

I have the following global cache settings (the site is set to inherit all cache related settings from global):

Server content caching
Cache page info (minutes): 10
Cache content (minutes): 10
Use progressive caching: checked

Server file caching
Cache images (minutes): 10
Maximum file size to cache: 200
Redirect files to disk: unchecked

File client caching
Client cache (minutes): 0
Client cache must revalidate: checked

Output caching
Enable output caching: checked
Cache output in file system (minutes): empty
Enable partial caching: checked

Any help would be greatly appreciated!

Thanks,
Matt

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/15/2014 2:53:00 PM
   
RE:Question on cache and user profiles
Matt,

In your webpart set the Partial cache minutes in the Performance section = 0. This will force it to refresh every page load and not cache it. I found this out with the Random Document repeater and a few others I wasn't getting the expected results on. I'd leave the settings you metioned above alone.

Brenden

User avatar
Member
Member
matt-awg - 1/16/2014 10:03:32 AM
   
RE:Question on cache and user profiles
Thanks Brenden,

I tried your partial cache suggestion but it did not fix the problem.

I even tried going to the actual page that contains these web parts and turned off cache using these settings:

Use output cache: NO
Allow file system cache: NO

and then I changed a field on a user profile and still I see the cached values from before the page changed. I tried in a few browsers. Same result. If I go into the Site Manager and System and then clear cache from there, it immediately loads the new values.

Anyone else have any ideas?

Thanks,
Matt

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/16/2014 1:39:15 PM
   
RE:Question on cache and user profiles
Matt, after you made the webpart setting change, did you log out of the site and close your browser windows and open and start from scratch? Very well could be the browser is caching it but you never know.