public function listAction() { $return = \DF\Cache::get('api_songs'); if (!$return) { ini_set('memory_limit', '-1'); $all_songs = Song::fetchArray(); $return = array(); foreach ($all_songs as $song) { $return[$song['id']] = Song::api($song); } \DF\Cache::save($return, 'api_songs', array(), 60); } return $this->returnSuccess($return); }