diff --git a/source/Ox.UI/js/Core/Ox.Request.js b/source/Ox.UI/js/Core/Ox.Request.js index cfd5bd5a..8b801a69 100644 --- a/source/Ox.UI/js/Core/Ox.Request.js +++ b/source/Ox.UI/js/Core/Ox.Request.js @@ -49,8 +49,14 @@ Ox.Request = function(options) { clearCache clear cached results () -> ... @*/ - clearCache: function() { - cache = {}; + clearCache: function(query) { + if (!query) { + cache = {}; + } else { + cache = Ox.filter(cache, function(val, key) { + return key.indexOf(query) == -1; + }); + } }, _leakCache: function() {