Skip to content

Commit

Permalink
Update controllers.rst
Browse files Browse the repository at this point in the history
Fixed cached element example.
  • Loading branch information
houseoftech committed Jun 30, 2013
1 parent ea3143a commit 0367ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/controllers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ Other Useful Methods
above it's best to make use of element caching to prevent needless
processing. By modifying the call to element to look like this::

echo $this->element('latest_comments', array(), array('cache' => '+1 hour'));
echo $this->element('latest_comments', array(), array('cache' => true));

The ``requestAction`` call will not be made while the cached
element view file exists and is valid.
Expand Down

0 comments on commit 0367ae1

Please sign in to comment.