Closed
Description
PHP Version
8.0
CodeIgniter4 Version
4.2.6
CodeIgniter4 Installation Method
Manual (zip or tar.gz)
Which operating systems have you tested for this bug?
Linux
Which server did you use?
fpm-fcgi
Database
Mysql 5.6
What happened?
First of all, his English is not good.
I have a blog page and I am using pagination.
When I use the $this-cachePage()
function on my blog page, it shows the 1st page that is cached when switching between pages, so it doesn't switch to other pages. How can I solve this?
Steps to Reproduce
public function index()
{
$this->cachePage(60);
$pageImage = model('PageImages')->image('blog', $this->cms);
$blogQuery = model('Blogs')->orderBy('tarih','DESC');
$list = $blogQuery->paginate(1);
$pager = $blogQuery->pager;
$this->setPageTitle($this->cms->lang('blog'));
return view('blog',compact('pageImage','list','pager'));
}
Expected Output
on which page it should be cached
Anything else?
No response