How delete special db cache |
Hi
My Codeigniter version is 3 I cache some query with $this-db->cache But the bad event is caches saved with segment and if I want to delete special query, I have to delete all cache For example, I have a function for getting user info with id 1 or 2 or 3 I cache query for each user When user 1 modify his profile, so I have to delete the cache for only user 1, not all cache Please help me how to do it
The only thing you might try is the db delete that only deletes the cache for that page.
Not the delete all one. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
You can not do it with the db cache, with the file cache you can name it and then delete it.
Sounds like it would be a good method to add to the db cache. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(09-17-2021, 05:06 AM)InsiteFX Wrote: You can not do it with the db cache, with the file cache you can name it and then delete it. I want to use Redis instead of DB cache But cannot install it on windows wamp My PHP version is 7.4.2 Can you help me with it? (09-17-2021, 05:34 AM)omid_student Wrote:(09-17-2021, 05:06 AM)InsiteFX Wrote: You can not do it with the db cache, with the file cache you can name it and then delete it. Try using laragon (laragon.org) , it come with redis server
(09-17-2021, 12:51 PM)ikesela Wrote:Thanks(09-17-2021, 05:34 AM)omid_student Wrote:(09-17-2021, 05:06 AM)InsiteFX Wrote: You can not do it with the db cache, with the file cache you can name it and then delete it. |
Welcome Guest, Not a member yet? Register Sign In |