Exemplo n.º 1
0
 protected static function setSphinxConnIndexInCache()
 {
     if (!self::$sphinxCache || self::$connIndex === self::$cachedConnIndex) {
         return;
     }
     $stickySessionExpiry = isset(self::$config['sphinx_datasources']['sticky_session_timeout']) ? self::$config['sphinx_datasources']['sticky_session_timeout'] : 600;
     self::$sphinxCache->set(self::$stickySessionKey, self::$connIndex, $stickySessionExpiry);
     self::$cachedConnIndex = self::$connIndex;
 }