Home  >  Article  >  Backend Development  >  PHP frameworks like blogmi creatively store site articles and configurations directly in PHP files instead of databases using read and write functions. What are the advantages and disadvantages of this approach?

PHP frameworks like blogmi creatively store site articles and configurations directly in PHP files instead of databases using read and write functions. What are the advantages and disadvantages of this approach?

WBOY
WBOYOriginal
2016-08-04 09:21:001174browse

I personally experienced it and found that the response speed is extremely fast, much faster than reading articles from the database, but I always feel that this method will have sequelae.
Is this method suitable for a small personal website? (No complex functions such as user registration and comments)
Can this framework be directly applied to the production environment?
What are the side effects of long-term use?

Reply content:

I personally experienced it and found that the response speed is extremely fast, much faster than reading articles from the database, but I always feel that this method will have sequelae.
Is this method suitable for a small personal website? (No complex functions such as user registration and comments)
Can this framework be directly applied to the production environment?
What are the side effects of long-term use?

This is the embodiment of file caching, mainly due to high performance
Disadvantages: It is not easy to maintain and query

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn