Welcome Guest, Not a member yet? Register   Sign In
Is this cache? I have to refresh the page to see the UPDATEd values in the database!
#1

[eluser]behnampmdg3[/eluser]
Hi;

This is pretty annoying.

I update the dadabase and redirect to another page which has the list of agents.

But I see the old data,,, unless I refresh the page !

Whats going on?
#2

[eluser]TheNextBillGates[/eluser]
Are you caching your pages? Do you have
Code:
$this->output->cache($number_of_minutes_to_store_cache);
in your controller?

How are you redirecting the page?

I just added caching to one of my controllers and tried adding data and the new data was there when I redirected to the page that displays a list of all data in the database, so my guess is it's not code igniters cache but it may be being cached else-ware
#3

[eluser]behnampmdg3[/eluser]
[quote author="TheNextBillGates" date="1370496702"]Are you caching your pages? Do you have
Code:
$this->output->cache($number_of_minutes_to_store_cache);
in your controller?[/quote]No[quote author="TheNextBillGates" date="1370496702"]How are you redirecting the page?

I just added caching to one of my controllers and tried adding data and the new data was there when I redirected to the page that displays a list of all data in the database, so my guess is it's not code igniters cache but it may be being cached else-ware[/quote]

redirect(site_url('agents/show'), 'refresh');

Cache where?

Thanks



#4

[eluser]behnampmdg3[/eluser]
Anyone?
#5

[eluser]InsiteFX[/eluser]
See this:

Web Browser Cache Control




Theme © iAndrew 2016 - Forum software by © MyBB