[Pkg-privacy-commits] [xul-ext-monkeysphere] 136/296: add clear cache function

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository xul-ext-monkeysphere.

commit 4303a7434ffb0373c85f998efe78ccc54702b093
Author: Jameson Rollins <jrollins at finestructure.net>
Date:   Sun Mar 7 16:00:29 2010 -0500

    add clear cache function
---
 chrome/content/monkeysphere.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index 7d5e4c8..5ce00d6 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -504,6 +504,11 @@ var monkeysphere = {
       },
       get: function(apd) {
         return responses[apd.toCacheLabel()];
+      },
+      clear: function(apd) {
+        monkeysphere.log("clear cache:");
+        apd.log();
+        delete responses[apd.toCacheLabel()];
       }
     };
   })(),

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/xul-ext-monkeysphere.git



More information about the Pkg-privacy-commits mailing list