Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Check is client is cached in the DB
public function is_cached($client_id)
$query = $this->db->select('id')->where('client_id', $client_id)->get('clients');
if($query->num_rows() == 0) {
return false;
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.