private static function getUCIThumbs($pageTitle, $width, $height, $purge = false) { global $wgMemc; if (!$pageTitle) { return array(); } $key = UCIPatrol::getUCIThumbsCacheKey($pageTitle, $width, $height); $thumbs = $wgMemc->get($key); if (UCIPatrol::UCI_CACHE && is_array($thumbs) && !$purge) { return $thumbs; } $images = UCIPatrol::getUCIForPage($pageTitle); $thumbs = array(); foreach ($images as $pageId => $image) { $thumb = UCIPatrol::getUCICacheData($pageId, $image, $width, $height); $thumbs[$pageId] = $thumb; } //$wgMemc->set($key, $thumbs, strtotime("+2 hour")); $wgMemc->set($key, $thumbs); return $thumbs; }