I just upgraded codeigniter and am trying to use its internal page caching for the first time. Problem is, it seems to be generating thousands of cache files.
It created 65,000 in a week, the site at most has 10k pages, of which no more than 2,000 are visited in a month.
It's very simple to use, It's one line just as described in the docs.
php
public function article($permalink){
$data['article'] = $this->getArticleByPermalink($permalink);
$this->output->cache(60*24);
$this->load->view('article', $data);
}
I have it set, for its lowest cache time, 24 hours. I've seen the fix of putting them in different folders - but why is that required? Shouldn't it be making one cache file per page and only one when/if that page is visited?
Is this expected behavior?