src/Watson/Sitemap/Sitemap.php
protected function saveCachedView(Response $response)
    {
        if (config('sitemap.cache_enabled')) {
            $key = $this->getCacheKey();

            $content = $response->getOriginalContent()->render();

            if (!$this->cache->get($key)) {
                $this->cache->put($key, $content, config('sitemap.cache_length'));
            }
        }
    }
protected function saveCachedView(Response $response)
    {
        if (config('sitemap.cache_enabled')) {
            $key = $this->getCacheKey();

            $content = $response->getOriginalContent()->render();

            if (!$this->cache->get($key)) {
                $this->cache->put($key, $content, config('sitemap.cache_length'));
            }
        }
    }
protected function saveCachedView ( Response $ response ) { if ( config ( 'sitemap.cache_enabled' ) ) { $ key = $ this -> getCacheKey ( ) ; $ content = $ response -> getOriginalContent ( ) -> render ( ) ; if ( ! $ this -> cache -> get ( $ key ) ) { $ this -> cache -> put ( $ key , $ content , config ( 'sitemap.cache_length' ) ) ; } } }
Save a cached view if caching is enabled.

@param  \Illuminate\Http\Response  $response
@return void
Save a cached view if caching is enabled .