Discussion:
How to Store Dynamic Content in cache
Vasanth Mathivanan
2018-08-10 13:38:55 UTC
Permalink
Hi,

In ATS , How to Store cache on dynamic content like Php file get request from db or some other php file calling functions ?

Example
/folder/path /file.php?movieid=3721&customerid=6588&stream_position=854&currentsection=T HTTP/1.1" 200 2

Thanks & Regards
Vasanth
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
Leif Hedstrom
2018-08-10 14:47:56 UTC
Permalink
ATS, or any other caching intermediary, doesn’t care how the content is generated. The default cache keys for ATS is the entire URL, so just make sure your content is cacheable (Cache-Control), and we should cache it.

From your example, if you want to exclude the customerid from the cache keys, then use the cachekey plugin to modify the strings. It’s well documented too, see our Docs site.

Cheers,

— Leif
Post by Vasanth Mathivanan
Hi,
In ATS , How to Store cache on dynamic content like Php file get request from db or some other php file calling functions ?
Example
/folder/path /file.php?movieid=3721&customerid=6588&stream_position=854&currentsection=T HTTP/1.1" 200 2
Thanks & Regards
Vasanth
Sent from Mail for Windows 10
Vasanth Mathivanan
2018-08-13 07:06:26 UTC
Permalink
Thanks Leif , I understand well and do I will try this ….

Thanks & Regards
Vasanth M

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Leif Hedstrom<mailto:***@apache.org>
Sent: Friday, August 10, 2018 8:18 PM
To: ***@trafficserver.apache.org<mailto:***@trafficserver.apache.org>
Subject: Re: How to Store Dynamic Content in cache

ATS, or any other caching intermediary, doesn’t care how the content is generated. The default cache keys for ATS is the entire URL, so just make sure your content is cacheable (Cache-Control), and we should cache it.

From your example, if you want to exclude the customerid from the cache keys, then use the cachekey plugin to modify the strings. It’s well documented too, see our Docs site.

Cheers,

— Leif

On Aug 10, 2018, at 7:38 AM, Vasanth Mathivanan <***@evolutiondigital.com<mailto:***@evolutiondigital.com>> wrote:


Hi,

In ATS , How to Store cache on dynamic content like Php file get request from db or some other php file calling functions ?

Example
/folder/path /file.php?movieid=3721&customerid=6588&stream_position=854&currentsection=T HTTP/1.1" 200 2

Thanks & Regards
Vasanth
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
Continue reading on narkive:
Loading...