src/Kisma.php
protected static function _initializeCache()
    {
        if ( !static::$_options[CoreSettings::ENABLE_CACHE] )
        {
            return false;
        }

        //  Try memcached
        try
        {
            return static::$_cache = Flexistore::createMemcachedStore( array('host' => 'localhost') );
        }
        catch ( \Exception $_ex )
        {
        }

        //  Try memcache
        try
        {
            return static::$_cache = Flexistore::createMemcacheStore( array('host' => 'localhost') );
        }
        catch ( \Exception $_ex )
        {
        }

        //  Find me a cache path!
        if ( false === ( $_path = static::_getCachePath() ) )
        {
            return false;
        }

        //  Try files
        return static::$_cache = Flexistore::createFileStore( $_path );
    }
protected static function _initializeCache()
    {
        if ( !static::$_options[CoreSettings::ENABLE_CACHE] )
        {
            return false;
        }

        //  Try memcached
        try
        {
            return static::$_cache = Flexistore::createMemcachedStore( array('host' => 'localhost') );
        }
        catch ( \Exception $_ex )
        {
        }

        //  Try memcache
        try
        {
            return static::$_cache = Flexistore::createMemcacheStore( array('host' => 'localhost') );
        }
        catch ( \Exception $_ex )
        {
        }

        //  Find me a cache path!
        if ( false === ( $_path = static::_getCachePath() ) )
        {
            return false;
        }

        //  Try files
        return static::$_cache = Flexistore::createFileStore( $_path );
    }
protected static function _initializeCache ( ) { if ( ! static :: $ _options [ CoreSettings :: ENABLE_CACHE ] ) { return false ; } //  Try memcached try { return static :: $ _cache = Flexistore :: createMemcachedStore ( array ( 'host' => 'localhost' ) ) ; } catch ( \ Exception $ _ex ) { } //  Try memcache try { return static :: $ _cache = Flexistore :: createMemcacheStore ( array ( 'host' => 'localhost' ) ) ; } catch ( \ Exception $ _ex ) { } //  Find me a cache path! if ( false === ( $ _path = static :: _getCachePath ( ) ) ) { return false ; } //  Try files return static :: $ _cache = Flexistore :: createFileStore ( $ _path ) ; }
Initialize my settings cache...
Initialize my settings cache ...