Scalable concrete5 with Memcache
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
application/src
README.md

README.md

Tutorial for scalling concrete5

Make your concrete5 site scalable with Memcache!

Works on concrete5 version 7.5.4+

How to setup

  1. Upload application/src directory to your concrete5 site

  2. Register a class override in your application/bootstrap/app.php

    Core::bind('Concrete\Core\Session\SessionFactoryInterface', 'Application\Src\Session\SessionFactory');
  3. Modify your application/config/concrete.php

    return array(
        // Change session handler to memcache
        'session' => array(
            'handler' => 'memcached',
            'memcached' => array(
                'servers' => array(
                    array(
                        'host' => 'example.domain.of.memcache.cache.amazonaws.com',
                        'port' => '11211',
                    ),
                ),
            ),
        ),
        // Change full page caching adapter to memcache
        'cache' => array(
            'overrides' => false,
            'page' => array(
                'adapter' => 'memcached',
                'memcached' => array(
                    'servers' => array(
                        array(
                            'host' => 'example.domain.of.memcache.cache.amazonaws.com',
                            'port' => '11211',
                        ),
                    ),
                ),
            ),
        ),
    );