Browse Source

#2065 add clear cache to search

pull/2092/head
jlukic 9 years ago
parent
commit
a0e7ba3666
1 changed files with 14 additions and 0 deletions
  1. 14
      src/definitions/modules/search.js

14
src/definitions/modules/search.js

@ -544,6 +544,20 @@ $.fn.search = function(parameters) {
}
},
clear: {
cache: function(value) {
if(!value) {
module.debug('Clearing cache', value);
$module.removeData(metadata.cache);
}
else if(value && cache && cache[value]) {
module.debug('Removing value from cache', value);
delete cache[value];
$module.data(metadata.cache, cache);
}
}
},
read: {
cache: function(name) {
var

Loading…
Cancel
Save