diff --git a/static/js/pandora/infoView.0xdb.js b/static/js/pandora/infoView.0xdb.js index 26e20fca..a250134c 100644 --- a/static/js/pandora/infoView.0xdb.js +++ b/static/js/pandora/infoView.0xdb.js @@ -762,6 +762,8 @@ pandora.ui.infoView = function(data) { }), function() { // fixme: update the info (video preview) frame as well var src; + pandora.clearIconCache(data.id); + Ox.Request.clearCache(); if (ui.icons == 'frames') { src = '/' + data.id + '/icon512.jpg?' + Ox.uid() $icon.attr({src: src}); diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 2af0f64c..dd263fac 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -182,6 +182,17 @@ pandora.changeListStatus = function(id, status, callback) { } }; +pandora.clearIconCache = function(item) { + ['poster', 'icon'].forEach(function(icon) { + ['', 64, 128, 512].forEach(function(size) { + var url = '/' + item + '/' + icon + size + '.jpg', + xhr = new XMLHttpRequest(); + xhr.open('POST', url); + xhr.send(); + }); + }); +} + pandora.clickLink = function(e) { if ( e.target.hostname == document.location.hostname