Skip to content

Commit 69b3697

Browse files
committed
Update README.md
1 parent 268a5d4 commit 69b3697

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

README.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,9 @@ tmdb_symfony:
3939
api_key: YOUR_API_KEY_HERE
4040
```
4141
42-
Read below how to setup the cache proplery, from there on that will be all that is required! Fire away!
43-
44-
__Want to make use of default caching and/or logging?__
45-
46-
This caching system will adhere to the TMDB API max-age values, if you have different needs like long TTL's
47-
you'd have to make your own implementation. We would be happy to intergrate more options, so please contribute.
48-
49-
```yaml
50-
tmdb_symfony:
51-
api_key: YOUR_API_KEY_HERE
52-
options:
53-
cache:
54-
enabled: true
55-
log:
56-
enabled: true
57-
#path: "%kernel.logs_dir%/tmdb.log"
58-
```
59-
6042
__Configure caching__
6143
62-
First create a new doctrine_cache provider with whatever your method of caching is.
44+
First create a new doctrine_cache provider with a caching provider of your preference.
6345
6446
```yaml
6547
doctrine_cache:
@@ -79,6 +61,22 @@ tmdb_symfony:
7961
handler: tmdb_cache
8062
```
8163
64+
This caching system will adhere to the TMDB API max-age values, if you have different needs like long TTL's
65+
you'd have to make your own implementation. We would be happy to intergrate more options, so please contribute.
66+
67+
__Want to make use of logging?__
68+
69+
```yaml
70+
tmdb_symfony:
71+
api_key: YOUR_API_KEY_HERE
72+
options:
73+
cache:
74+
enabled: true
75+
log:
76+
enabled: true
77+
#path: "%kernel.logs_dir%/tmdb.log"
78+
```
79+
8280
__Disable repositories :__
8381

8482
```yaml

0 commit comments

Comments
 (0)