Posts: 944
Threads: 128
Joined: Sep 2014
Reputation:
0
Hi, is it important to delete caches? The only thing that confuses me about MySQL right now are the caches. Are there any tutorials about that or can someone be so kind and tell me about caches? Like what are they even for? I heard they are stored in the memory or something. I looked at the MySQL's website, but that didn't really help me.
As far as i know, you should ad must delete them, as they can somehowbe used to hack your database (i amnot saying it onmy own).
The so called hijacking thing through inputs.
Cache is something similar then.
Posts: 944
Threads: 128
Joined: Sep 2014
Reputation:
0
But threaded queries don't save cache unless I save it, am I right?
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
They do use cache but it is deleted automatically after the code of the specified callback is executed (finished). I supposed that for those queries that do not specify a callback, it is deleted right after the execution.
Posts: 170
Threads: 10
Joined: Sep 2011
Quote:
Originally Posted by Konstantinos
If you use non-threaded queries
|
That's not true. I have never used threaded queries and there was no memory leaks on my servers.
Cache is always deleting by self, you only need to delete it when you use cache_save.