Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
added caching
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Sep 26, 2012
1 parent 8511a00 commit 5534ce7
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 9 deletions.
1 change: 1 addition & 0 deletions app/AppKernel.php
Expand Up @@ -16,6 +16,7 @@ public function registerBundles()

new Doctrine\Bundle\PHPCRBundle\DoctrinePHPCRBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new Liip\DoctrineCacheBundle\LiipDoctrineCacheBundle(),

// enable cmf bundles
new Symfony\Cmf\Bundle\RoutingExtraBundle\SymfonyCmfRoutingExtraBundle(),
Expand Down
9 changes: 8 additions & 1 deletion app/config/config.yml
Expand Up @@ -50,4 +50,11 @@ knp_menu:

symfony_cmf_menu:
use_sonata_admin: false
menu_basepath: /cms
menu_basepath: /cms

liip_doctrine_cache:
namespaces:
meta:
type: file_system
nodes:
type: file_system
7 changes: 6 additions & 1 deletion app/config/parameters.yml
Expand Up @@ -4,7 +4,12 @@ parameters:
secret: 10784a86848b5412b5f7fa644e90ef24e
database_driver: pdo_sqlite
database_path: '%kernel.root_dir%/app.sqlite'
phpcr_backend: { type: doctrinedbal, connection: doctrine.dbal.default_connection }
phpcr_backend:
type: doctrinedbal
connection: doctrine.dbal.default_connection
caches:
meta: liip_doctrine_cache.ns.meta
nodes: liip_doctrine_cache.ns.nodes
phpcr_workspace: default
phpcr_user: admin
phpcr_pass: admin
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -16,7 +16,8 @@
"doctrine/doctrine-bundle": "1.0.*",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"liip/functional-test-bundle": "dev-master",
"lunetics/locale-bundle": "dev-master"
"lunetics/locale-bundle": "dev-master",
"liip/doctrine-cache-bundle": "dev-master"
},
"scripts": {
"post-install-cmd": [
Expand Down
56 changes: 50 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5534ce7

Please sign in to comment.