From 0367ae1eb64994ea9e2562b09377cc43863ed8b6 Mon Sep 17 00:00:00 2001 From: Corie Slate Date: Sun, 30 Jun 2013 16:14:45 +0200 Subject: [PATCH] Update controllers.rst Fixed cached element example. --- en/controllers.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/controllers.rst b/en/controllers.rst index d75a209f32..84b32937bb 100644 --- a/en/controllers.rst +++ b/en/controllers.rst @@ -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.