On Thu, Mar 12, 2015 at 12:58 PM, Gayan Dhanushka <[email protected]> wrote:

> 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
>

IMO we shouldn't keep the application_list in the *session*. Otherwise this
will cause the issue that Danushka explained earlier. Shall we move it to
*application* cache and do proper invalidation on update/delete?

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.
>

Are we using this application_list somewhere else?. It's not correct to
have the application_list in the *session* cache.


> 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.
>

Check whether the  USER_HOME_CACHE have the application creation status; it
shouldn't be cached since it's a dynamic parameter; in that case you'll
have to getapplication info from  the back-end.


>

>
WDYT ?
>
> Regards
> Gayan
>
> On Thu, Mar 12, 2015 at 12:59 PM, Anuruddha Premalal <[email protected]>
> 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 <[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
>>
>>
>
>
> --
> 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
>



-- 
*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

Reply via email to