Let's talk about the PHP template cache and data security questions. if the PHP template cache page is stored on a machine, it is either to expose user data to the machine. if you use a VM, so can I directly read your cache page across sites to master your cached sensitive information ??? Or do I not know much about the template engine? is there any way to cache user data and it is not so easy to read ??? What is the caching mechanism of most template engines ??? Welcome to talk about PHP template cache and data security.
For example, if the PHP template cache page is stored on a machine, it means that the user data is exposed to the machine. if the VM is used, so can I directly read your cache page across sites to master your cached sensitive information ???
Or do I not know much about the template engine? is there any way to cache user data and it is not so easy to read ???
What is the caching mechanism of most template engines ???
Welcome to your speech !!
I just got in touch with the template engine. don't blame me for not saying anything!
------ Solution --------------------
Open_basedir-qualified Directory
But on a virtual machine, the data is exposed to the server manager.
------ Solution --------------------
Security is always relative
When you store data in a node on the internet in any form, your data is in an "insecure" state.
So there's no need to worry about it.
The template engine cache is used to accelerate the next access.
This is not directly related to security.
------ Solution --------------------
Since your website has sensitive data, you can set up servers and manage things for yourself. Otherwise, you will never be safe.
------ Solution --------------------
Is user data cached?
The final solution to this problem is not to cache user data.
------ Solution --------------------
Reference:
For example, if the PHP template cache page is stored on a machine, it means that the user data is exposed to the machine. if the VM is used, so can I directly read your cache page across sites to master your cached sensitive information ???
Or do I not know much about the template engine? is there any way to cache user data and it is not so easy to read ???
What is the caching mechanism of most template engines ???
Welcome to your speech !!
I just got started with the template engine and said no ......
Many interviews have asked you what the php Cache mechanism is and whether it has been used.
I don't think there is any data cache except page cache and template cache.
In fact, both of them have two sides. the specific needs depend on the demand and data volume.