diff options
author | Zach Copley <zach@status.net> | 2010-07-19 13:43:17 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-07-19 13:47:42 -0700 |
commit | d51820adc52aef962542ecc6da0607ce0118fefc (patch) | |
tree | 7c4b8d3f3bb05a012a86a1bdaedd9a5928731121 | |
parent | 65862d8f7f45d487d4714137af96d3a24e4ca386 (diff) |
Change the cache window on notices from 61 to 200, the max number
of notices available at one time through the API. Note: this will
require a memcache restart.
-rw-r--r-- | classes/Notice.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index ae7e2e540..8552248ba 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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); |