You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Muhammad Faisal <fa...@yahoo.com> on 2016/04/15 20:12:16 UTC

Question on CacheURL plugin

Hi,
How we can verify if the configuration we have done in cacheurl.config 
is actually working. I read the relevant docs but didnt find how the 
logging can be done for this plugin.

--
Regards,
Faisal.

Re: Question on CacheURL plugin

Posted by Gancho Tenev <gt...@gmail.com>.
+CC: dev@trafficserver.apache.org


> On Apr 15, 2016, at 11:30 AM, Gancho Tenev <gt...@gmail.com> wrote:
> 
> Hi Muhammad, 
> 
> One way to check the value of the cache key would be to add etc/trafficserver/plugin.config
> 
> xdebug.so
> 
> and them adding -H 'X-Debug: X-Cache-Key’ to the curl command-line parameters and you should see the following header in the response:
> 
> < X-Cache-Key: /www.example.com/80/popular/Mozilla/5.0/H1:v1/H2:v2/C1=v1;C2=v2/path/to/data?a=1&b=2&c=3 <http://www.example.com/80/popular/Mozilla/5.0/H1:v1/H2:v2/C1=v1;C2=v2/path/to/data?a=1&b=2&c=3>
> 
> A complete example can be found in the cachekey documentation:
> 
>   https://github.com/apache/trafficserver/blob/master/doc/admin-guide/plugins/cachekey.en.rst <https://github.com/apache/trafficserver/blob/master/doc/admin-guide/plugins/cachekey.en.rst>
> 
> 
> 
> Hi Dev, 
> 
> We discussed earlier that we plan to deprecate cacheurl soon, I was wondering if we can have 
> 
>    https://github.com/apache/trafficserver/pull/552 <https://github.com/apache/trafficserver/pull/552> 
> 
> reviewed and hopefully merged in the next release so Muhammad could use cachekey plugin instead of cacheurl. 
> 
> We have another user of the cachekey newest features who is waiting for this pull request to be merged (they are already running it in production with the change provided as a patch on top of the latest ATS release)
> 
> 
> Cheers,
> —Gancho
> 
> 
>> On Apr 15, 2016, at 11:12 AM, Muhammad Faisal <faisalusuf@yahoo.com <ma...@yahoo.com>> wrote:
>> 
>> Hi,
>> How we can verify if the configuration we have done in cacheurl.config is actually working. I read the relevant docs but didnt find how the logging can be done for this plugin.
>>  
>> --
>> Regards,
>> Faisal.
> 


Re: Question on CacheURL plugin

Posted by Gancho Tenev <gt...@gmail.com>.
+CC: dev@trafficserver.apache.org


> On Apr 15, 2016, at 11:30 AM, Gancho Tenev <gt...@gmail.com> wrote:
> 
> Hi Muhammad, 
> 
> One way to check the value of the cache key would be to add etc/trafficserver/plugin.config
> 
> xdebug.so
> 
> and them adding -H 'X-Debug: X-Cache-Key’ to the curl command-line parameters and you should see the following header in the response:
> 
> < X-Cache-Key: /www.example.com/80/popular/Mozilla/5.0/H1:v1/H2:v2/C1=v1;C2=v2/path/to/data?a=1&b=2&c=3 <http://www.example.com/80/popular/Mozilla/5.0/H1:v1/H2:v2/C1=v1;C2=v2/path/to/data?a=1&b=2&c=3>
> 
> A complete example can be found in the cachekey documentation:
> 
>   https://github.com/apache/trafficserver/blob/master/doc/admin-guide/plugins/cachekey.en.rst <https://github.com/apache/trafficserver/blob/master/doc/admin-guide/plugins/cachekey.en.rst>
> 
> 
> 
> Hi Dev, 
> 
> We discussed earlier that we plan to deprecate cacheurl soon, I was wondering if we can have 
> 
>    https://github.com/apache/trafficserver/pull/552 <https://github.com/apache/trafficserver/pull/552> 
> 
> reviewed and hopefully merged in the next release so Muhammad could use cachekey plugin instead of cacheurl. 
> 
> We have another user of the cachekey newest features who is waiting for this pull request to be merged (they are already running it in production with the change provided as a patch on top of the latest ATS release)
> 
> 
> Cheers,
> —Gancho
> 
> 
>> On Apr 15, 2016, at 11:12 AM, Muhammad Faisal <faisalusuf@yahoo.com <ma...@yahoo.com>> wrote:
>> 
>> Hi,
>> How we can verify if the configuration we have done in cacheurl.config is actually working. I read the relevant docs but didnt find how the logging can be done for this plugin.
>>  
>> --
>> Regards,
>> Faisal.
> 


Re: Question on CacheURL plugin

Posted by Gancho Tenev <gt...@gmail.com>.
Hi Muhammad, 

One way to check the value of the cache key would be to add etc/trafficserver/plugin.config

xdebug.so

and them adding -H 'X-Debug: X-Cache-Key’ to the curl command-line parameters and you should see the following header in the response:

< X-Cache-Key: /www.example.com/80/popular/Mozilla/5.0/H1:v1/H2:v2/C1=v1;C2=v2/path/to/data?a=1&b=2&c=3

A complete example can be found in the cachekey documentation:

  https://github.com/apache/trafficserver/blob/master/doc/admin-guide/plugins/cachekey.en.rst



Hi Dev, 

We discussed earlier that we plan to deprecate cacheurl soon, I was wondering if we can have 

   https://github.com/apache/trafficserver/pull/552 

reviewed and hopefully merged in the next release so Muhammad could use cachekey plugin instead of cacheurl. 

We have another user of the cachekey newest features who is waiting for this pull request to be merged (they are already running it in production with the change provided as a patch on top of the latest ATS release)


Cheers,
—Gancho


> On Apr 15, 2016, at 11:12 AM, Muhammad Faisal <fa...@yahoo.com> wrote:
> 
> Hi,
> How we can verify if the configuration we have done in cacheurl.config is actually working. I read the relevant docs but didnt find how the logging can be done for this plugin.
>  
> --
> Regards,
> Faisal.


Re: Question on CacheURL plugin

Posted by Muhammad Faisal <fa...@yahoo.com>.
Ok thanks for a quick response.
--
Regards,
Faisal.



------ Original Message ------
From: "Leif Hedstrom" <zw...@apache.org>
To: users@trafficserver.apache.org
Sent: 4/15/2016 11:29:37 PM
Subject: Re: Question on CacheURL plugin

>Please use the cachekey plugin instead. Hopefully we get to deprecate 
>the old cacheurl plugin.
>
>That much said, look at the X debug plugin which can show te cache key.
>
>-- Leif
>
>On Apr 15, 2016, at 12:12 PM, Muhammad Faisal <fa...@yahoo.com> 
>wrote:
>
>>Hi,
>>How we can verify if the configuration we have done in cacheurl.config 
>>is actually working. I read the relevant docs but didnt find how the 
>>logging can be done for this plugin.
>>
>>--
>>Regards,
>>Faisal.
>>

Re: Question on CacheURL plugin

Posted by Leif Hedstrom <zw...@apache.org>.
Please use the cachekey plugin instead. Hopefully we get to deprecate the old cacheurl plugin.

That much said, look at the X debug plugin which can show te cache key.

-- Leif 

> On Apr 15, 2016, at 12:12 PM, Muhammad Faisal <fa...@yahoo.com> wrote:
> 
> Hi,
> How we can verify if the configuration we have done in cacheurl.config is actually working. I read the relevant docs but didnt find how the logging can be done for this plugin.
>  
> --
> Regards,
> Faisal.
>