![]() |
CI 2.0 missing memcache config file - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: CI 2.0 missing memcache config file (/showthread.php?tid=38228) Pages:
1
2
|
CI 2.0 missing memcache config file - El Forum - 02-02-2011 [eluser]joshfng[/eluser] The user guide says the there should be a config file for memcache located in the application/config/ directory but there is not one there. Is it located somewhere else? CI 2.0 missing memcache config file - El Forum - 02-02-2011 [eluser]Victor Michnowicz[/eluser] You gotta create it yourself. CI 2.0 missing memcache config file - El Forum - 02-02-2011 [eluser]joshfng[/eluser] http://ellislab.com/codeigniter/user-guide/libraries/caching.html#memcached says its located in the config directory but it is not. If I am supposed to create it myself the docs give no details on what the caching class expects in terms of a config array to pass it. CI 2.0 missing memcache config file - El Forum - 02-02-2011 [eluser]Victor Michnowicz[/eluser] Yeah, I assumed it was in there as well. I think something like this would go in your memcached.php config file (I have not tested this): Code: <?php You also gotta remember that memcached is different than memcache. That got me for a while... I created (really just search/replaced) a memcache driver if you are interested. It seems to work well for me. CI 2.0 missing memcache config file - El Forum - 02-05-2011 [eluser]joshfng[/eluser] Hmm I tried the config file you gave me and it's not working. The weird thing is if I connect to memcached directly using just the memcached ext everything connects and works fine. CI 2.0 missing memcache config file - El Forum - 02-08-2011 [eluser]joshfng[/eluser] bump CI 2.0 missing memcache config file - El Forum - 02-08-2011 [eluser]Unknown[/eluser] I'd really like to know what to do with this ... Any help would be greatly appreciated CI 2.0 missing memcache config file - El Forum - 02-08-2011 [eluser]Unknown[/eluser] I think the memcached.php config file has to be like this Code: <?php At least that worked for me. Also keep in mind what elvicmic mentioned. Memcached and memcache are different extensions. Check your php.ini which extension is loaded. CI 2.0 missing memcache config file - El Forum - 02-09-2011 [eluser]CoderBoy[/eluser] Yeah same as m3du54, my memcached.php file Code: <?php CI 2.0 missing memcache config file - El Forum - 02-09-2011 [eluser]joshfng[/eluser] Yes this works. Thanks everyone! |