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

[eluser]emurad[/eluser]
Hi,

How can I update the database views column of a cached article?

Thanks.
#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');
...




Theme © iAndrew 2016 - Forum software by © MyBB