Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Kunstmaan Distributed Bundle Laravel Package

dreadlabs/kunstmaan-distributed-bundle

View on GitHub
Deep Wiki
Context7

Kunstmaan CMS Distributed Bundle

Configures a Kunstmaan Bundles CMS instance for running on distributed, clustered infrastructure.

What does it do?

  1. Package installations

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

    snc/redis-bundle
    predis/predis
    
  2. Compiler passes

    • kunstmaan_admin.cache

      Replace filesystem cache with a redis cache.

    • dreadlabs_kunstmaan_distibuted.cache_page_events.subscriber

      Registers an EventListener for page cache invalidation.

How to activate?

Add the following bundles to your AppKernel:

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

Add the following container parameters to your parameters.yml.dist:

# 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:

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:

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

class AppCache extends HttpCache
{
}
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle