Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
Update cache.rst
Browse files Browse the repository at this point in the history
The value for the `public` attribute should be specified without quotation marks. For the construction `public="false"`, actually `public` takes the value `true`, because a string converted to Boolean will always be `true`.
  • Loading branch information
marianflorin committed Apr 10, 2014
1 parent fef3821 commit e0c01a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/doc/annotations/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The ``@Cache`` annotation makes it easy to define HTTP caching::
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;

/**
* @Cache(expires="tomorrow", public="true")
* @Cache(expires="tomorrow", public=true)
*/
public function indexAction()
{
Expand All @@ -22,7 +22,7 @@ You can also use the annotation on a class to define caching for all actions
of a controller::

/**
* @Cache(expires="tomorrow", public="true")
* @Cache(expires="tomorrow", public=true)
*/
class BlogController extends Controller
{
Expand Down

0 comments on commit e0c01a6

Please sign in to comment.