Welcome Guest, Not a member yet? Register   Sign In
Database Caching Class
#1

[eluser]Near[/eluser]
im using Database Caching Class to cache my queries.. how long will the cached files stay on my cache folder?
#2

[eluser]Aken[/eluser]
Read! http://ellislab.com/codeigniter/user-gui...ching.html
#3

[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>
#4

[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.
#5

[eluser]Near[/eluser]
Hi,, i already implement database caching class on application i was creating.. another question...

for example

i have
Code:
user 1
logged in on the website... the database query cache has been written with his informations in it..

then another user, lets say
Code:
User 2
has logged in, what will happen to the database query cache? will it overwrite the previous cache? thanks.. i was really confused...

sorry for my bad english.. :p
#6

[eluser]Ben Bowler[/eluser]
What setting in database.php defines the cache directory?

cachedir!
#7

[eluser]Ben Bowler[/eluser]
'cachedir' - duh!




Theme © iAndrew 2016 - Forum software by © MyBB