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 <[email protected]> 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 <[email protected]> > 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 <[email protected]> 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 > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
