Welcome Guest, Not a member yet? Register   Sign In
Forcing a cache refresh for a page?
#1

[eluser]coldclimate[/eluser]
Hi,
I spent an hour last night chasing a bug that turned out not to be a bug, just a page which was caching (at my request) and thus showing me results I had deleted.

Is it possible to force a page that is cashed to be refreshed? Output caching is a different business to using memcache/squid/varnish etc, but for the life of me I can't find a £this->output->force_refresh() or equivalent.

Cheers,
Oli
#2

[eluser]Rob Gordijn[/eluser]
guide:
http://ellislab.com/codeigniter/user-gui...ching.html

"If you no longer wish to cache a file you can remove the caching tag and it will no longer be refreshed when it expires. Note: Removing the tag will not delete the cache immediately. It will have to expire normally. If you need to remove it earlier you will need to manually delete it from your cache folder."


A force refresh is not availble atm, and I doubt it will be.
But, you can always extend the output class with a little method :-)
#3

[eluser]coldclimate[/eluser]
Hmm, a cunning plan.




Theme © iAndrew 2016 - Forum software by © MyBB