protected function initStreamContext($args) { // no stream is required if: // we don't need to refresh our cache if ($this->cacheIsFresh()) { return; } parent::initStreamContext($args); }