# Purge Cache when Using IMediaListProvider

**URL:** <https://community.wowza.com/t/purge-cache-when-using-imedialistprovider/36750>\
**Category:** Wowza Streaming Engine\
**Created:** [October 17, 2016, 2:56pm UTC](https://community.wowza.com/t/purge-cache-when-using-imedialistprovider/36750 "2016-10-17T14:56:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxym\_Golovanchuk](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@Maxym\_Golovanchuk](https://community.wowza.com/u/Maxym_Golovanchuk)\
**Post date:** [October 17, 2016, 2:56pm UTC](https://community.wowza.com/t/purge-cache-when-using-imedialistprovider/36750/1 "2016-10-17T14:56:48Z")

</div>

Hello,

I am forming HLS and DASH manifests dynamically by implementing IMediaListProvider interface. I am trying to output different number of renditions based on HTTP request params. But the problem is that looks like there is an internal cache that prevents it to be dynamic as needed.

For example, only the first request to the stream will call IMediaListProvider.resolveMediaList, all consequent calls will grab the cached data from somewhere else.

Is there a way how I can purge that cache or at least distinguish requests by request params?

Thanks,

Max

---

<div class="post-metadata">

**Author:** ![Jermaine\_Hemby](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jermaine\_Hemby](https://community.wowza.com/u/Jermaine_Hemby)\
**Post date:** [November 20, 2016, 10:17am UTC](https://community.wowza.com/t/purge-cache-when-using-imedialistprovider/36750/2 "2016-11-20T10:17:33Z")

</div>

Hello!

Thanks for contacting Wowza Forums!

Regarding purging cache, here is an article on purging cache for on-demand assets: [Purge Cache](https://www.wowza.com/docs/how-to-purge-an-item-from-the-cache-mediacache%28MediaCache%29)

Regards,

Jermaine
