Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

view->cache level

in my action write:


and cache:

$this->view->cache(array("key" => 'key'));

it not cached!! if remove LEVEL_ACTION_VIEW - cached OK! how to make that cached with level??? thanks.

I think it caches whole rendered view and not its part.

edited Oct '14

This is corrected code

$this->view->cache(array('level' => \Phalcon\Mvc\View::LEVEL_ACTION_VIEW));

edited Oct '14

I think you can also use

$cache_options = array('level' => \Phalcon\Mvc\View::LEVEL_ACTION_VIEW);