Home> php教程> php手册> body text

Website performance optimization

WBOY
Release: 2016-11-16 10:24:04
Original
977 people have browsed it

1. Configure apache on the server and set up browser cache to reduce requests to the server;
2. Set up static pages or use redis and memcache to cache content with a lot of queries;
3. Optimize the database and query a lot of content Use the MyISAM engine; check whatever fields you want to query, do not use * to query all; do not use join statements; build indexes appropriately; use limit appropriately.
4. In-site search can be done directly using Baidu in-site search, which improves performance and reduces server pressure

5. Use sphinx full text search

source:php.cn
Statement of this Website
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
Popular Recommendations
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!