Hi Anuruddha/ Danushka, FYI, I checked the code again and noticed that calling getAllAppsOfUser from the user home page is not needed anymore. It is used in the eventing page template. So updating the "application_list" in session from the notification wall template is enough. Further more "application_list" is not the attribtue in the session which is used to draw the user home page. It is "USER_HOME_CACHE" attribute the one which is used.
So I think it is safe to remove the recurring getAllAppsOfUser from the user home page. WDYT ? Regards Gayan On Thu, Mar 12, 2015 at 12:59 PM, Anuruddha Premalal <anurud...@wso2.com> wrote: > Hi Gayan, > > IMO we should cache user data in the session cache and the application > data should go to the application level cache. This way we can get rid of > unwanted back-end calls and do proper cache invalidation. > > So IMO the proper way to do this is to have a clear data separation in > caching layers rather than increasing callbacktime. > > WDYT? > > Regards, > Anuruddha. > > On Wed, Mar 11, 2015 at 12:33 PM, Gayan Dhanushka <gay...@wso2.com> wrote: > >> Hi Danushka, >> >> Thanks for the useful information. Yes. The cache is in the session. Me >> too believe that the 1 minute time difference is too soon. >> >> +1 for increasing it. >> >> Regards >> Gayan >> >> On Wed, Mar 11, 2015 at 1:38 PM, Danushka Fernando <danush...@wso2.com> >> wrote: >> >>> I didn't check the code. However I guess cache is in session. Is that >>> right? So say A logs in to AF and do whatever stuff. And B logs in to AF >>> and create an application foo and add A to that foo application. Then there >>> is no way to update the cache unless we read it from data layer time to >>> time. If this is not the case picture in my head is wrong so please correct >>> it. >>> However 1 minute seems too soon. >>> >>> 1. Make it configurable >>> 2. Increase it to somewhere like 10 - 15 minutes. >>> >>> WDYT? >>> >>> Thanks & Regards >>> Danushka Fernando >>> Software Engineer >>> WSO2 inc. http://wso2.com/ >>> Mobile : +94716332729 >>> >>> On Wed, Mar 11, 2015 at 1:13 PM, Gayan Dhanushka <gay...@wso2.com> >>> wrote: >>> >>>> Hi all, >>>> >>>> I noticed $subject in the index page. Any particular reason for having >>>> this ? Since we have a cache for user home data, IMO we do not need this >>>> anymore. Data from the back end can only be read initially. >>>> >>>> Regards >>>> Gayan >>>> >>>> -- >>>> Gayan Dhanuska >>>> Software Engineer >>>> http://wso2.com/ >>>> Lean Enterprise Middleware >>>> >>>> Mobile >>>> 071 666 2327 >>>> >>>> Office >>>> Tel : 94 11 214 5345 >>>> Fax : 94 11 214 5300 >>>> >>>> Twitter : https://twitter.com/gayanlggd >>>> >>> >>> >> >> >> -- >> Gayan Dhanuska >> Software Engineer >> http://wso2.com/ >> Lean Enterprise Middleware >> >> Mobile >> 071 666 2327 >> >> Office >> Tel : 94 11 214 5345 >> Fax : 94 11 214 5300 >> >> Twitter : https://twitter.com/gayanlggd >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Anuruddha Premalal* > Software Eng. | WSO2 Inc. > Mobile : +94710461070 > Web site : www.regilandvalley.com > > -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev