"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/inc/class_datacache.php" between
mybb_1822.zip and mybb_1823.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

class_datacache.php  (mybb_1822):class_datacache.php  (mybb_1823)
skipping to change at line 97 skipping to change at line 97
// Xcache cache // Xcache cache
case "xcache": case "xcache":
require_once MYBB_ROOT."/inc/cachehandlers/xcache .php"; require_once MYBB_ROOT."/inc/cachehandlers/xcache .php";
$this->handler = new xcacheCacheHandler(); $this->handler = new xcacheCacheHandler();
break; break;
// APC cache // APC cache
case "apc": case "apc":
require_once MYBB_ROOT."/inc/cachehandlers/apc.ph p"; require_once MYBB_ROOT."/inc/cachehandlers/apc.ph p";
$this->handler = new apcCacheHandler(); $this->handler = new apcCacheHandler();
break; break;
// APCu cache
case "apcu":
require_once MYBB_ROOT."/inc/cachehandlers/apcu.p
hp";
$this->handler = new apcuCacheHandler();
break;
// Redis cache
case "redis":
require_once MYBB_ROOT."/inc/cachehandlers/redis.
php";
$this->handler = new redisCacheHandler();
break;
} }
if($this->handler instanceof CacheHandlerInterface) if($this->handler instanceof CacheHandlerInterface)
{ {
if(!$this->handler->connect()) if(!$this->handler->connect())
{ {
$this->handler = null; $this->handler = null;
} }
} }
else else
skipping to change at line 1092 skipping to change at line 1102
$query = $db->simple_select("threads", "tid, subject, views, fid, uid", "visible='1'", array('order_by' => 'views', 'order_dir' => 'DESC', 'limit _start' => 0, 'limit' => $mybb->settings['statslimit'])); $query = $db->simple_select("threads", "tid, subject, views, fid, uid", "visible='1'", array('order_by' => 'views', 'order_dir' => 'DESC', 'limit _start' => 0, 'limit' => $mybb->settings['statslimit']));
while($thread = $db->fetch_array($query)) while($thread = $db->fetch_array($query))
{ {
$threads[] = $thread; $threads[] = $thread;
} }
$this->update("most_viewed_threads", $threads); $this->update("most_viewed_threads", $threads);
} }
/**
* @deprecated
*/
function update_banned() function update_banned()
{ {
global $db; // "banned" cache removed
$bans = array();
$query = $db->simple_select("banned");
while($ban = $db->fetch_array($query))
{
$bans[$ban['uid']] = $ban;
}
$this->update("banned", $bans);
} }
function update_birthdays() function update_birthdays()
{ {
global $db; global $db;
$birthdays = array(); $birthdays = array();
// Get today, yesterday, and tomorrow's time (for different timez ones) // Get today, yesterday, and tomorrow's time (for different timez ones)
$bdaytime = TIME_NOW; $bdaytime = TIME_NOW;
 End of changes. 3 change blocks. 
11 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)