Results 1 to 4 of 4

Thread: MediaCache , I wan to clear a specific media cache.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2013

    Default MediaCache , I wan to clear a specific media cache.


    I am using MediaCache plugin to serve VOD service.
    To purge, now, I am using the
    However, the problem is that the cached file is alive until the MediaCache.gc() is executed.
    Thus, between purging and the MediaCache.gc() execution, the new connection can still use old cached file.
    As for the Sanjose streaming, the session.rejectSession() could not destroy the stream immediately, so the gc is executed very late.

    What I want to do is deleting the old cache when I command server to purge.
    MediaCache.clearAll() works like what I want except the number of the files.
    I want a API like
    I also tried gc() but it doesn't work.
    --> especially, Sanjose streaming, because the rejectSession() can't destroy the stream immediately.
    In addition, I reverse engineered MediaCache and tried to do clear() for a specific media file.
    I, however, can't remove the item of the HashMap.

    Do you have any suggestion ?
    If so, Please let me know.
    Take care.


    Why MediaCache API document does not have any description?
    Can I get the API docs with description?

    I think If I can find out how to disconnect the Sanjose streaming completely, gc() can work weill.
    If you know how to do, please let me know.
    Last edited by i5on9i; 01-14-2014 at 04:41 AM.

Similar Threads

  1. 2 layers cache directory of MediaCache
    By Guttso in forum Other Extensions
    Replies: 2
    Last Post: 06-12-2014, 09:48 AM
  2. Disable cache at MediaCache
    By solidx in forum General Forum
    Replies: 5
    Last Post: 05-02-2014, 05:02 AM
  3. MediaCache cache full - what's next?
    By romild0 in forum AddOn: Other AddOns
    Replies: 2
    Last Post: 09-27-2012, 08:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts