Move memcache settings to config file.

This commit is contained in:
Retro_Guy 2024-05-08 14:01:21 -07:00
parent f97fcc59d2
commit 12a3ca5009
2 changed files with 6 additions and 2 deletions

View File

@ -663,7 +663,6 @@ function groups_show($gruppen)
if ($found == 1) {
$lastarticleinfo['date'] = $row['date'];
if ($memcacheD) {
$memcache_ttl = 3600;
$memcacheD->add($lar_memcache = 'lastarticleinfo-' . $g->name, $lastarticleinfo['date'], $memcache_ttl);
}
}
@ -1888,7 +1887,6 @@ function np_get_db_article($article, $group, $makearray = 1, $dbh = null)
}
}
if ($ok_article == 1 && $memcacheD) {
$memcache_ttl = 14400;
$memcacheD->add($article_key, $msg2, $memcache_ttl);
}
}

View File

@ -10,6 +10,12 @@ if(!$enable_memcache) {
$server = '127.0.0.1';
$port = 11211;
// Log all hits
$enable_memcache_logging = false;
// Time in seconds to cache data
$memcache_ttl = 14400;
/* PLEASE DO NOT EDIT BELOW THIS LINE */
// Initiate a new object of memcache