}
function cache_expire() {
- while (article_cache.length > 20) {
+ while (article_cache.length > 25) {
article_cache.shift();
}
}
for (var i = 0; i < articles.length; i++) {
var id = articles[i].getAttribute("id");
- if (!cache_find(id)) {
+ if (!cache_check(id)) {
cache_inject(id, articles[i].firstChild.nodeValue);
debug("preloaded article: " + id);
}
function preloadArticleUnderPointer(id) {
try {
- if (post_under_pointer == id && !cache_find(id)) {
+ if (post_under_pointer == id && !cache_check(id)) {
debug("trying to preload article " + id);