2017 © Pedro Peláez
 

symfony-bundle kunstmaan-distributed-bundle

Set and use sensible defaults for running the Kunstmaan CMS on a distributed infrastructure.

image

dreadlabs/kunstmaan-distributed-bundle

Set and use sensible defaults for running the Kunstmaan CMS on a distributed infrastructure.

  • Thursday, November 3, 2016
  • by dreadwarrior
  • Repository
  • 1 Watchers
  • 1 Stars
  • 62 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

Kunstmaan CMS Distributed Bundle

Configures a Kunstmaan Bundles CMS instance for running on distributed, clustered infrastructure., (*1)

What does it do?

  1. Package installations, (*2)

    In order to operate on distributed infrastructure, Redis was choosen as a backend for various caches:, (*3)

     snc/redis-bundle
     predis/predis
  2. Compiler passes, (*4)

    • kunstmaan_admin.cache, (*5)

      Replace filesystem cache with a redis cache., (*6)

    • dreadlabs_kunstmaan_distibuted.cache_page_events.subscriber, (*7)

      Registers an EventListener for page cache invalidation., (*8)

How to activate?

Add the following bundles to your AppKernel:, (*9)

// ...
new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
new Snc\RedisBundle\SncRedisBundle(),
new DreadLabs\KunstmaanDistributedBundle\DreadLabsKunstmaanDistributedBundle(),
// ...

Add the following container parameters to your parameters.yml.dist:, (*10)

# Set according to the valid clients which may purge the cache
http_cache_purge_client_ips: [127.0.0.1, ...]
# Host and port of the proxy server(s)
http_cache_proxy_servers: [localhost:80]
# Base-URL of the application
http_cache_proxy_baseurl: localhost
# Proxy client options
http_cache_proxy_options: { purge_method: '', ... }
# Change / customize if something prevents the custom HTTP Method
http_cache_purge_method: 'PURGE'

Add the following configuration keys to your parameters.yml.dist:, (*11)

redis_host:                    localhost
redis_db_cache:                1
redis_db_annotations:          2
redis_db_http_cache:           3
redis_db_kunstmaanadmin_cache: 4

Use the Bundle's HttpCache in your app/AppCache.php:, (*12)

// app/AppCache.php
// ...
use DreadLabs\KunstmaanDistributedBundle\HttpCache\HttpCache;

class AppCache extends HttpCache
{
}

The Versions