Exemplo n.º 1
0
 /**
  * PHP5-style constructor
  */
 function __construct()
 {
     require_once W3TC_LIB_W3_DIR . '/Config.php';
     $config =& W3_Config::instance();
     $this->_debug = $config->get_boolean('varnish.debug');
     $this->_servers = $config->get_array('varnish.servers');
     $this->_timeout = $config->get_integer('timelimit.varnish_purge');
 }
 /**
  * PHP5 Constructor
  */
 function __construct()
 {
     require_once W3TC_LIB_W3_DIR . '/Config.php';
     $this->_config =& W3_Config::instance();
     $this->_debug = $this->_config->get_boolean('pgcache.debug');
     $this->_lifetime = $this->_config->get_integer('pgcache.lifetime');
     $this->_enhanced_mode = $this->_config->get_string('pgcache.engine') == 'file_pgcache';
 }
Exemplo n.º 3
0
 /**
  * PHP5 constructor
  *
  * @param string $dbuser
  * @param string $dbpassword
  * @param string $dbname
  * @param string $dbhost
  */
 function __construct($dbuser, $dbpassword, $dbname, $dbhost)
 {
     require_once W3TC_LIB_W3_DIR . '/Config.php';
     $this->_config =& W3_Config::instance();
     $this->_lifetime = $this->_config->get_integer('dbcache.lifetime');
     if ($this->_can_ob()) {
         ob_start(array(&$this, 'ob_callback'));
     }
     parent::__construct($dbuser, $dbpassword, $dbname, $dbhost);
 }
Exemplo n.º 4
0
 /**
  * PHP5-style constructor
  */
 function __construct()
 {
     require_once W3TC_LIB_W3_DIR . '/Config.php';
     $config =& W3_Config::instance();
     $this->groups = $config->get_array('mobile.rgroups');
 }
Exemplo n.º 5
0
/**
 * Returns nginx rules path
 *
 * @return string
 */
function w3_get_nginx_rules_path()
{
    require_once W3TC_LIB_W3_DIR . '/Config.php';
    $config =& W3_Config::instance();
    $path = $config->get_string('config.path');
    if (!$path) {
        $path = w3_get_document_root() . '/nginx.conf';
    }
    return $path;
}
Exemplo n.º 6
0
 /**
  * PHP5-style constructor
  */
 function __construct()
 {
     require_once W3TC_LIB_W3_DIR . '/Config.php';
     $config =& W3_Config::instance();
     $this->key = $config->get_string('widget.pagespeed.key');
 }
Exemplo n.º 7
0
 /**
  * PHP5 Constructor
  */
 function __construct()
 {
     require_once W3TC_LIB_W3_DIR . '/Config.php';
     $this->_config =& W3_Config::instance();
 }
Exemplo n.º 8
0
 /**
  * PHP5 Constructor
  */
 function __construct()
 {
     require_once W3TC_LIB_W3_DIR . '/Config.php';
     $this->_config =& W3_Config::instance();
     $this->_debug = $this->_config->get_boolean('pgcache.debug');
     $this->_request_uri = $_SERVER['REQUEST_URI'];
     $this->_lifetime = $this->_config->get_integer('browsercache.html.lifetime');
     $this->_enhanced_mode = $this->_config->get_string('pgcache.engine') == 'file_generic';
     if ($this->_config->get_boolean('mobile.enabled')) {
         require_once W3TC_LIB_W3_DIR . '/Mobile.php';
         $this->_mobile =& W3_Mobile::instance();
     }
     if ($this->_config->get_boolean('referrer.enabled')) {
         require_once W3TC_LIB_W3_DIR . '/Referrer.php';
         $this->_referrer =& W3_Referrer::instance();
     }
 }
Exemplo n.º 9
0
 /**
  * PHP5 style constructor
  */
 function __construct()
 {
     require_once W3TC_LIB_W3_DIR . '/Config.php';
     $this->_config =& W3_Config::instance();
     $this->_lifetime = $this->_config->get_integer('objectcache.lifetime');
     $this->_debug = $this->_config->get_boolean('objectcache.debug');
     $this->global_groups = $this->_config->get_array('objectcache.groups.global');
     $this->nonpersistent_groups = $this->_config->get_array('objectcache.groups.nonpersistent');
     $this->_caching = $this->_can_cache();
     $GLOBALS['_wp_using_ext_object_cache'] = $this->_caching;
     if ($this->_can_ob()) {
         ob_start(array(&$this, 'ob_callback'));
     }
 }