Enable Script Cache ~
When enabled, MODX will cache all Scripts (Snippets and Plugins) to file to reduce load times. MODX recommends leaving this set to 'Yes'.

@param bool $value

@return $this
502093
public function setCoreCacheScripts($value)
    {
        $this->setFieldName('cache_scripts');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
844274
public function setCoreSessionCookieHttponly($value)
    {
        $this->setFieldName('session_cookie_httponly');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1083248
public function setCoreAutoCheckPkgUpdatesCacheExpire($value)
    {
        $this->setFieldName('auto_check_pkg_updates_cache_expire');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
454283
public function setCorePhpthumbAllowSrcAboveDocroot($value)
    {
        $this->setFieldName('phpthumb_allow_src_above_docroot');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
691053
public function setCoreCompressJs($value)
    {
        $this->setFieldName('compress_js');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
253837
public function setCoreCacheFormat($value)
    {
        $this->setFieldName('cache_format');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
554706
static public function setCache( $value )
	{
		$old = self::$cache;
		self::$cache = (boolean) $value;

		return $old;
	}
1058266
public function setLocalOnly($value = false)
    {
        $this->localOnly = $value;
        $this->scope = $value ? $this->worksheet : null;
        return $this;
    }
333327
public function setCoreCacheContextSettings($value)
    {
        $this->setFieldName('cache_context_settings');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1237241
public function setCorePhpthumbCacheMaxsize($value)
    {
        $this->setFieldName('phpthumb_cache_maxsize');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
279997
public function setCoreWhichEditor($value)
    {
        $this->setFieldName('which_editor');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
789610
public function persistent(bool $value = true): self
    {
        return $this->option(PDO::ATTR_PERSISTENT, $value);
    }
687865
public function setIframe($value)
    {
        $profile = ((bool)$value ? static::PROFILE_LOW : static::PROFILE_NORMAL);

        return $this->setParameter('profile', $profile);
    }
202362
public function setCoreCacheLexiconTopics($value)
    {
        $this->setFieldName('cache_lexicon_topics');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
45677
public function setUnloadDoctrineEveryTick($value)
    {
        $this->unloadDoctrineEveryTick = max(0, (int) $value);
        $this->ticksUntilUnload = $this->unloadDoctrineEveryTick ?: null;

        return $this;
    }
410159
public function setIgnoreDocumentMargin($value = TRUE) {
    if ($this->validateIgnoreDocumentMargin($value)) {
      $this->ignoreDocumentMargin = $value;
    }
    return $this;
  }
992111
public function setLocalOnly($value = false) {
    	$this->_localOnly = $value;
    	$this->_scope = $value ? $this->_worksheet : null;
    	return $this;
    }