Re: Caching part of view and user-specific sidebar problem

2012-06-19 Thread thanat
Yes, you can use requestAction from within an element. in your element you can write $data = $this->requestAction(array('controller' => 'test', 'action' => 'getdataforelementaction' )); and in your controller public function getdataforelementaction() { if (isset($this->params['requested']))

Caching part of view and user-specific sidebar problem

2012-06-18 Thread Joris Vaesen
I've build an application with a where where users can see multiple items. These items are sorted by pagination. Because of the big amount of items per page would i like to do some caching. Because the page is using pagination, I can't cache the query. So I was thinking about caching the view, wh