Welcome Guest, Not a member yet? Register   Sign In
Updating the database views column of a cached page
#2

[eluser]TWP Marketing[/eluser]
Use the cache library function to save a new copy of the view.
That means you must regenerate the view, with your updated information.
From the user guide:
Quote:...
save(id['string'], data['mixed'], ttl['int'])

This function will save an item to the cache store. If saving fails, the function will return FALSE.

The optional third parameter (Time To Live) defaults to 60 seconds.
$this->cache->save('cache_item_id', 'data_to_cache');
...


Messages In This Thread
Updating the database views column of a cached page - by El Forum - 06-15-2011, 07:42 AM
Updating the database views column of a cached page - by El Forum - 06-15-2011, 10:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB