/** * 更新用户群组信息(CmemberAndColony)时,清除相应缓存 * * @param array $information * @return boolean */ function changeCmemberAndColonyWithUserIds($information) { if (!isset($information['uid'])) { return true; } $userIds = is_array($information['uid']) ? $information['uid'] : array($information['uid']); if (Perf::checkMemcache()) { $_cacheService = Perf::gathercache('pw_members'); return $_cacheService->clearCacheForCmemberAndColonyByUserIds($userIds); } else { $_cacheService = Perf::gatherCache('pw_membersdbcache'); return $_cacheService->clearColonyDbCacheByUserIds($userIds); } }