Database Caching Class |
[eluser]Near[/eluser]
im using Database Caching Class to cache my queries.. how long will the cached files stay on my cache folder?
[eluser]Aken[/eluser]
Read! http://ellislab.com/codeigniter/user-gui...ching.html
[eluser]Near[/eluser]
hi! im sorry i forgot to say that im using the database caching class.. it says there,, <b>Since cache files do not expire</b>
[eluser]Ayeyermaw[/eluser]
[quote author="mbet" date="1337931304"]hi! im sorry i forgot to say that im using the database caching class.. it says there,, <b>Since cache files do not expire</b>[/quote] Indeed. That means they will stay there until you delete them. The idea of using a cache is to prevent the database getting queried each time a page is viewed. It cuts down the overhead on the database. You will need to write routines into your application that clear out the cache for data that is changing. So... any time you update a table clear out the cache.
[eluser]Near[/eluser]
Hi,, i already implement database caching class on application i was creating.. another question... for example i have Code: user 1 then another user, lets say Code: User 2 sorry for my bad english.. :p
[eluser]Ben Bowler[/eluser]
What setting in database.php defines the cache directory? cachedir!
|
Welcome Guest, Not a member yet? Register Sign In |