Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
b6606a7c
Commit
b6606a7c
authored
Jan 23, 2013
by
Javier Eguiluz
Committed by
Fabien Potencier
Jan 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated HttpCacheServiceProvider documentation
parent
b42bc687
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
doc/providers/http_cache.rst
doc/providers/http_cache.rst
+17
-0
No files found.
doc/providers/http_cache.rst
View file @
b6606a7c
...
@@ -18,6 +18,15 @@ Services
...
@@ -18,6 +18,15 @@ Services
* **http_cache**: An instance of `HttpCache
* **http_cache**: An instance of `HttpCache
<http:
//
api
.
symfony
.
com
/
master
/
Symfony
/
Component
/
HttpKernel
/
HttpCache
/
HttpCache
.
html
>
`_.
<http:
//
api
.
symfony
.
com
/
master
/
Symfony
/
Component
/
HttpKernel
/
HttpCache
/
HttpCache
.
html
>
`_.
* **http_cache.esi**: An instance of `Esi
<http:
//
api
.
symfony
.
com
/
master
/
Symfony
/
Component
/
HttpKernel
/
HttpCache
/
Esi
.
html
>
`_,
that implements the ESI capabilities to Request and Response instances.
* **http_cache.store**: An instance of `Store
<http:
//
api
.
symfony
.
com
/
master
/
Symfony
/
Component
/
HttpKernel
/
HttpCache
/
Store
.
html
>
`_,
that implements all the logic for storing cache metadata (Request and Response
headers).
Registering
Registering
-----------
-----------
...
@@ -86,6 +95,14 @@ The provider also provides ESI support::
...
@@ -86,6 +95,14 @@ The provider also provides ESI support::
$app['http_cache']->run();
$app['http_cache']->run();
If your application doesn't use ESI, you can disable it to slightly improve the
overall performance::
$app->register(new Silex\Provider\HttpCacheServiceProvider(), array(
'http_cache.cache_dir' => __DIR__.'/cache/',
'http_cache.esi' => null,
));
.. tip::
.. tip::
To help you debug caching issues, set your application ``debug`` to true.
To help you debug caching issues, set your application ``debug`` to true.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment