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.

Phalcon cache - ajax request

Hi evryone,

I have little problem with cache. When I'm using ajax requests in my ControllerBase I have:

if ($this->request->isAjax())
        $this->view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_ACTION_VIEW);

this view doesn't cache - why? When I remove render level evrythink is ok. In controller action I have:

    $this->view->cache(array(
        "lifetime" => 86400,        
        "key"  => $this->cache_index
    ));

May I "force" cache for render level?



1.1k

u can close this issue)