]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Change the cache window on notices from 61 to 200, the max number
authorZach Copley <zach@status.net>
Mon, 19 Jul 2010 20:43:17 +0000 (13:43 -0700)
committerZach Copley <zach@status.net>
Mon, 19 Jul 2010 20:47:42 +0000 (13:47 -0700)
of notices available at one time through the API. Note: this will
require a memcache restart.

classes/Notice.php

index ae7e2e54022a2c27e3740b7549b78cfaf4c976a7..8552248bad2c4cc3dfea6290803a4b653733f1f9 100644 (file)
@@ -42,10 +42,10 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
  */
 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
 
-/* We keep the first three 20-notice pages, plus one for pagination check,
+/* We keep 200 notices, the max number of notices available per API request,
  * in the memcached cache. */
 
-define('NOTICE_CACHE_WINDOW', 61);
+define('NOTICE_CACHE_WINDOW', 200);
 
 define('MAX_BOXCARS', 128);