]> git.wh0rd.org Git - tt-rss.git/commitdiff
article cache: strip unneeded fields of cache objects
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 15 May 2007 07:56:19 +0000 (08:56 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 15 May 2007 07:56:19 +0000 (08:56 +0100)
viewfeed.js

index e9365dbcbfade5cf4fbac00d7f5c94249e66279a..bc296c55652d0597176c1758e0d977696ac5712e 100644 (file)
@@ -796,14 +796,8 @@ function cache_inject(id, article) {
 
                var cache_obj = new Array();
 
-               var d = new Date();
-
                cache_obj["id"] = id;
-               cache_obj["entered"] = d.getTime() / 1000;
                cache_obj["data"] = article;
-               cache_obj["last_access"] = 0;
-
-               //article_cache[id] = cache_obj;
 
                article_cache.push(cache_obj);
 
@@ -815,8 +809,6 @@ function cache_inject(id, article) {
 function cache_find(id) {
        for (var i = 0; i < article_cache.length; i++) {
                if (article_cache[i]["id"] == id) {
-                       var d = new Date();
-                       article_cache[i]["last_access"] = d.getTime() / 1000;
                        return article_cache[i]["data"];
                }
        }