From 3a82baec9d793edf81ac2b151b0f4d4159641375 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 1 Apr 2024 11:09:25 -0400 Subject: login and register, liking on homepage --- web/_model/cache.php | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 web/_model/cache.php (limited to 'web/_model/cache.php') diff --git a/web/_model/cache.php b/web/_model/cache.php deleted file mode 100644 index 6cf9924..0000000 --- a/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