Visits – PHP page access issues

WBOY
Release: 2016-10-11 14:23:39
Original
1011 people have browsed it

For a simple HTML page written in PHP, PHP mainly makes WeChat jsdk calls (accesstoken, WeChat forwarding tickets, etc. interfaces). The view part is text and pictures, and does not involve database storage. The page loads total files + pictures + media files. About 3M. If a page like this has a large number of visits, will it cause the server driver to hang up?

Reply content:

For a simple HTML page written in PHP, PHP mainly makes WeChat jsdk calls (accesstoken, WeChat forwarding tickets, etc. interfaces). The view part is text and pictures, and does not involve database storage. The page loads total files + pictures + media files. About 3M. If a page like this has a large number of visits, will it cause the server driver to hang up?

Except for dynamic requests, images and media files will be cached on the client after being requested once. If you are still worried, you can use a CDN service so that static files do not go directly to the application server.

It depends on the complexity of PHP processing transactions. To put it simply, the risk must be smaller
It is best to cache images, css, js, media files and other resources. You can consider using Varnish

Related labels:
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 Tutorials
More>
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!