protected function maybe_update_option_cache($to_cache) { if (empty($to_cache)) { return; } $urls = array_merge($this->get_option_cache(), $to_cache); update_option('amazonS3_cache', $urls); }