Welcome Guest, Not a member yet? Register   Sign In
What or where is $cachedir (Ci interface w/ mysql)
#1

[eluser]Unknown[/eluser]
Is the $cachedir element in the $db array (database.php) the location you want CI to write cache data to, or is it the location of your database's cache?

If the latter, where is my mysql cache likely to be located, in /var/lib/mysql/mysql/? All the frm, myd and myi files are there, but nothing that suggests a cache file or dir. (Standard LAMP, Ubuntu 12.4)

So, what value should I set for the $cachedir variable?

Thanks
#2

[eluser]TheFuzzy0ne[/eluser]
Welcome to the CodeIgniter forums!

The cache dir is the directory in which CodeIgniter will cache database results. This defaults to the application directory.

If you're using database caching, so long as the directory specified exists and is writable, the default should do fine. I wouldn't bother moving it unless you have a good reason to.




Theme © iAndrew 2016 - Forum software by © MyBB