[eluser]SpooF[/eluser]
Does the cache function cache on a per controller basis? Basicly if I have pagination in one of my controllers, will it cache the first page and when someone requests the second page what will happen? Will it display the cached page or is it smart enough to work around the pagination?
Okay, so instead of waiting for someone else to test this out, I just did and without looking at the caching code, it looks like CodeIgniter takes into account the URL. So it cache each page of the pagination. Its late
Dont know why I asked, could of easly thrown it in and see what happened. Maybe I just like to "hear you guys talk" ;-P
However, because its late and I'm to tired to look into the code, has anyone build an exertion to the caching library to delete a cached file? Say I want to cache a file for 60 minutes, but if it updated I want to delete the cached file.
Cancel that, the cache file name is a mp5 of the URL, so all I have to do is store the
REQUEST_URI in a flash session variable and when someone edits/alters the page I simple just delete that file.
I figured I would post this anyways in hope that someone else will find it handy.