caching - Cache and pagination with CakePHP 3.x -
here how cache results pagination cakephp 2.x.
i have not tried yet, believe same method valid cakephp 3.x.
however, since cakephp 3.x introduces several new features using cache (for example, find()
method takes cache
option), wanted know if there faster method.
i have seen book , apis, not mentioned special in regard.
one thing: here explained that
by default paginate() method use default model controller. can pass resulting query of find method:
maybe this? use find()
method cache
option , pass results paginate()
?.
thanks.
i not avise towards caching queries, specially not results of pagination. idea in theory right:
$akeythatencodesquerystringandconditions = ...; $this->paginate($this->users->find()->cache($akeythatencodesquerystringandconditions));
Comments
Post a Comment