How implement cache on Search query sql |
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...
@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)
(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?
Okay, I just found the bug...
it was missing to indicate the cache directory in database.php https://i.imgur.com/j8RgLiz.png |
Welcome Guest, Not a member yet? Register Sign In |