# caching .ts files

**URL:** <https://forum.developer.roku.com/t/caching-ts-files/1367>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [March 30, 2011, 1:17am UTC](https://forum.developer.roku.com/t/caching-ts-files/1367 "2011-03-30T01:17:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynamitemedia](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dynamitemedia](https://forum.developer.roku.com/u/dynamitemedia)\
**Post date:** [March 30, 2011, 1:17am UTC](https://forum.developer.roku.com/t/caching-ts-files/1367/1 "2011-03-30T01:17:26Z")

</div>

is there any way of deleting these? i am having strange behavior with the m3u8 playlist.

i actually delete the playlist and the files but Roku has cached them and even though the playlist will say something totally different it will still try and play the old files so for example

```auto
roku-1-1.ts  
roku-1-2.ts
roku-1-3.ts

```

Then i delete those from the server and the new set will look like this:

```auto
roku-2-1.ts
roku-2-2.ts
roku-2-3.ts

```

and the m3u8 will say roku-2-3.ts but then the roku will be playing roku-1-3.ts

i hope i explained it without adding all the playlist code. is there a way to delete those files once they are not needed from the roku?

---

<div class="post-metadata">

**Author:** ![RokuKevin](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@RokuKevin](https://forum.developer.roku.com/u/RokuKevin)\
**Post date:** [April 4, 2011, 4:28pm UTC](https://forum.developer.roku.com/t/caching-ts-files/1367/2 "2011-04-04T16:28:44Z")

</div>

Neither the Roku box nor the HLS spec does not allow changing the playlist randomly. A “Live” playlist can change by removing the first segment from the list and adding a new last segment.

The Roku box polls for a new playlist at least once per target duration. This is when you could make the change in the playlist.

The box will cache all the segments it downloads until it plays them (and even after it plays them to support instant-replay). There is no way to turn this behavior off.

–Kevin

---

<div class="post-metadata">

**Author:** ![destruk](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@destruk](https://forum.developer.roku.com/u/destruk)\
**Post date:** [April 5, 2011, 4:36am UTC](https://forum.developer.roku.com/t/caching-ts-files/1367/3 "2011-04-05T04:36:37Z")

</div>

What does it do when the cache is full?

---

<div class="post-metadata">

**Author:** ![RokuKevin](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@RokuKevin](https://forum.developer.roku.com/u/RokuKevin)\
**Post date:** [April 5, 2011, 5:05am UTC](https://forum.developer.roku.com/t/caching-ts-files/1367/4 "2011-04-05T05:05:01Z")

</div>

removes the first in.

–Kevin

---

<div class="post-metadata">

**Author:** ![wr6757](https://avatars.discourse-cdn.com/v4/letter/w/7cd45c/32.png) [@wr6757](https://forum.developer.roku.com/u/wr6757)\
**Post date:** [November 13, 2021, 4:27am UTC](https://forum.developer.roku.com/t/caching-ts-files/1367/5 "2021-11-13T04:27:41Z")

</div>

They need to create an option for deleting cache from the system menu
