Re: [Dev] what is the difference between EnableGatewayKeyCache and EnableGatewayResourceCache

2014-08-17 Thread Nuwan Dias
Hi Shavantha,

The EnableGatewayKeyCache entry enables/disables a cache which we use to
store tokens. Whereas the EnableGatewayResourceCache entry
enables/disables a cache which we use to store data of API resources.

Your observations are not related to the resource cache AFAIU, but they are
related to the token cache. The token cache is used to store information
related to a token. Ex: token's validity period, token owner's username,
etc. The resource cache is used to store information related to API
resources such as a resource's auth type, tier, etc.

Thanks,
NuwanD.


On Sat, Aug 16, 2014 at 10:37 AM, Shavantha Weerasinghe shavan...@wso2.com
wrote:

 Hi Nuwan

 What is the difference between the two properties EnableGatewayKeyCache
 and EnableGatewayResourceCache that exist within the api-manager.xml.

 I tested with both enabled disabled and one of the two enabled and what I
 noticed was that when EnableGatewayKeyCache was enabled and if we delete an
 application then the invocation of an API stopps after about 15 minutes
 where as if the *EnableGatewayKeyCache *was disabled and
 EnableGatewayResourceCache was enabled then upon deleting an application
 with the subscriptions the invocation is not allowed

 regards,
 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300




-- 
Nuwan Dias

Associate Tech Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] what is the difference between EnableGatewayKeyCache and EnableGatewayResourceCache

2014-08-15 Thread Shavantha Weerasinghe
Hi Nuwan

What is the difference between the two properties EnableGatewayKeyCache and
EnableGatewayResourceCache that exist within the api-manager.xml.

I tested with both enabled disabled and one of the two enabled and what I
noticed was that when EnableGatewayKeyCache was enabled and if we delete an
application then the invocation of an API stopps after about 15 minutes
where as if the *EnableGatewayKeyCache *was disabled and
EnableGatewayResourceCache was enabled then upon deleting an application
with the subscriptions the invocation is not allowed

regards,
Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev