[eluser]houdini2232[/eluser]
I have been using CodeIgniter for two or more years now but I've run into an issue today I've never encountered before.
We have a simple admin page that allows a user to activate/deactivate entries in the database. When they click "activate" or "deactivate", it goes to a link like this:
/admin/update/65/1
This would activate the entry with ID 65, for instance. This works fine. The database is updated. Then I simply redirect the user back to the page they were viewing (/admin), but the page does not reflect the updates. Instead, I have to manually refresh the page in order to see the changes. The page is somehow being cached and I've tried every browser. I've even tried adding the following code to all pages:
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE" />
It doesn't work. I've tried redirecting using CodeIgniter's redirect() function and using standard PHP headers (header('Location: /admin')). They both act the same.
What on earth could be causing this issue? It's happening in every single browser I've tested in thus far (Firefox/Chrome/Safari). The /admin/home page is cached even after I visit a few other pages and come back to that page later.
Using CodeIgniter 2.0.2