From 5a2ba9c2e7605bb788bc406184547d22c6436867 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 23 Dec 2024 11:13:27 -0500 Subject: v2.1.0, refactor w/ crimson --- src/web/_model/cache.php | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/web/_model/cache.php (limited to 'src/web/_model/cache.php') diff --git a/src/web/_model/cache.php b/src/web/_model/cache.php deleted file mode 100644 index 6cf9924..0000000 --- a/src/web/_model/cache.php +++ /dev/null @@ -1,37 +0,0 @@ -users = array(); - } - - /** - * Gets a array of users - */ - public function get_users($objs) { - $ids = array(); - foreach ($objs as $obj) { - $id = $obj['user_id']; - if (!array_key_exists($id, $this->users)) { - array_push($ids, intval($id)); - } - } - if (!empty($ids)) { - $result = $this->main->db - ->select('*') - ->from('api.user') - ->where_in('id', $ids) - ->rows(); - foreach ($result as $user) { - $id = $user['id']; - $this->users[$id] = $user; - } - } - return $this->users; - } - -} -- cgit v1.2.3-freya