getCache($endpoint); // try find in cache if ( empty($out) || !is_array($out)){ $ret = $this->wrenchboard->wrenchboard_api($in, $out); $out['internal_return'] = $ret; $this->saveCache($endpoint,$out,15000); } return $this->summaryReturnData($in,$out); //json_encode( $final_out ); } public function usersPreferences(){ //preferences } }