Skip to content

Commit 484cb71

Browse files
committed
Merge pull request #241 from symfony-cmf/doctrine-cache-bundle
switch to DoctrineCacheBundle
2 parents 4729697 + c6fac78 commit 484cb71

File tree

6 files changed

+17
-24
lines changed

6 files changed

+17
-24
lines changed

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,7 @@ and then install the dependencies:
5656

5757
The Doctrine DBAL implementation is installed by default already along side the Jackrabbit implementation.
5858

59-
To enable the meta data and node cache to improve performance first enable ``LiipDoctrineCacheBundle``
60-
in ``app/AppKernel.php`` and then also perform:
61-
62-
php composer.phar require liip/doctrine-cache-bundle:dev-master --no-update
63-
php composer.phar update liip/doctrine-cache-bundle
64-
65-
Finally uncomment the ``caches`` settings in the `phpcr.yml` as well as the ``liip_doctrine_cache``
66-
settings in ``app/config/config.yml``.
59+
To disable the meta data and node cache for debugging comment the ``caches`` settings in the `phpcr.yml`.
6760

6861

6962
Note: On Windows you need to run the shell as Administrator or edit the `composer.json` and

app/AppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function registerBundles()
5757
new Liip\ImagineBundle\LiipImagineBundle(),
5858

5959
// jackalope doctrine caching
60-
// new Liip\DoctrineCacheBundle\LiipDoctrineCacheBundle(),
60+
new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
6161

6262
// block caching and feeds
6363
new Sonata\CacheBundle\SonataCacheBundle(),

app/config/config.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,12 @@ fm_elfinder:
311311
upload_allow: ['all']
312312
upload_max_size: 2M
313313

314-
# jackalope doctrine caching
315-
#liip_doctrine_cache:
316-
# namespaces:
317-
# meta:
318-
# type: file_system
319-
# nodes:
320-
# type: file_system
314+
doctrine_cache:
315+
providers:
316+
phpcr_meta:
317+
type: file_system
318+
phpcr_nodes:
319+
type: file_system
321320

322321
fos_rest:
323322
view:

app/config/phpcr_doctrine_dbal.yml.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ parameters:
22
phpcr_backend:
33
type: doctrinedbal
44
connection: default
5-
# caches:
6-
# meta: liip_doctrine_cache.ns.meta
7-
# nodes: liip_doctrine_cache.ns.nodes
5+
caches:
6+
meta: doctrine_cache.providers.phpcr_meta
7+
nodes: doctrine_cache.providers.phpcr_nodes
88
phpcr_workspace: default
99
phpcr_user: admin
1010
phpcr_pass: admin

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"jackalope/jackalope-jackrabbit": "~1.1",
3232
"doctrine/doctrine-bundle": "~1.2",
3333
"doctrine/data-fixtures": "1.0.*",
34+
"doctrine/doctrine-cache-bundle": "~1.0",
3435
"sonata-project/cache-bundle": "~2.1",
3536
"sonata-project/doctrine-phpcr-admin-bundle": "~1.1",
3637
"symfony-cmf/block-bundle": "~1.1",

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)