How implement cache on Search query sql - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How implement cache on Search query sql (/showthread.php?tid=72431) |
How implement cache on Search query sql - Decibel150 - 12-18-2018 Hi guys, I need to be able to cache all kinds of searches with like. I have it this way, according to the documentation, but according to the profiler, it doesn't save in cache and the query is still running. SearchModel PHP Code: public function search($product) SearchController: PHP Code: public function index($product) Directory application\cache is empty... RE: How implement cache on Search query sql - php_rocs - 12-18-2018 @Decibel150, What version of CI are you using? Is the CI cache directory writable? Are there any errors in the CI log file? Also, have you tried this... PHP Code: public function search($product) RE: How implement cache on Search query sql - Decibel150 - 12-19-2018 (12-18-2018, 04:00 PM)php_rocs Wrote: @Decibel150, i use the last Version (3.1.9), does not give any kind of error, and the permits are the right ones. that might be failing? RE: How implement cache on Search query sql - Decibel150 - 12-19-2018 Okay, I just found the bug... it was missing to indicate the cache directory in database.php https://i.imgur.com/j8RgLiz.png RE: How implement cache on Search query sql - php_rocs - 12-19-2018 @Decibel150, Awesome, glad you figured it out. |