Airship\Engine\Bolt\Cache::tightenCacheBolt PHP Method

tightenCacheBolt() public method

After loading the Cache bolt in place, configure it.
public tightenCacheBolt ( )
    function tightenCacheBolt()
    {
        static $tightened = false;
        if ($tightened) {
            return;
        }
        if (\extension_loaded('apcu')) {
            $this->airship_filecache_object = (new SharedMemory())->personalize('staticPage:');
            $this->airship_cspcache_object = (new SharedMemory())->personalize('contentSecurityPolicy:');
        } else {
            $this->airship_filecache_object = new File(ROOT . '/tmp/cache/static');
            $this->airship_cspcache_object = new File(ROOT . '/tmp/cache/csp_static');
        }
    }