CN111767485A - Webpage display method, system, electronic equipment and medium - Google Patents

Webpage display method, system, electronic equipment and medium Download PDF

Info

Publication number
CN111767485A
CN111767485A CN201910256463.7A CN201910256463A CN111767485A CN 111767485 A CN111767485 A CN 111767485A CN 201910256463 A CN201910256463 A CN 201910256463A CN 111767485 A CN111767485 A CN 111767485A
Authority
CN
China
Prior art keywords
data
accessed
webpage
cache pool
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910256463.7A
Other languages
Chinese (zh)
Inventor
孙高金
李思林
林志刚
陈淡华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Selected Quick Buy Network Technology Co ltd
Original Assignee
Guangzhou Selected Quick Buy Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Selected Quick Buy Network Technology Co ltd filed Critical Guangzhou Selected Quick Buy Network Technology Co ltd
Priority to CN201910256463.7A priority Critical patent/CN111767485A/en
Publication of CN111767485A publication Critical patent/CN111767485A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a page display method, a page display system, electronic equipment and a page display medium, which are used for tracking a webpage data request in real time and judging whether webpage data to be accessed are stored in a cache pool or not when the data request is webpage access; if so, returning webpage data to be accessed to the user through the cache pool; and otherwise, an access request is provided to the server of the webpage to be accessed through a network protocol, and the webpage data to be accessed are returned to the user for display after the server response is obtained. The method simplifies the process of returning page data through business processing into directly reading and returning from the cache pool, and provides smooth access experience for users.

Description

Webpage display method, system, electronic equipment and medium
Technical Field
The invention relates to the technical field of internet, in particular to a webpage display method, a webpage display system, electronic equipment and a webpage display medium.
Background
With the development of internet technology, the response speed of website services is more and more emphasized by users, and especially for the e-commerce industry, the experience of users is greatly influenced by the display speed of web pages. Most websites display webpage contents to users in a real-time display mode at present, one page can be displayed only within several seconds of response time, the response time is longer when the access amount is large, even page display cannot be normally performed, unsmooth experience is brought to the users, and the purchasing rate and commodity ordering rate of the users are directly influenced for the e-commerce industry.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a webpage display method, a system electronic device and a medium, wherein a cache pool is established for storing browsed webpage data, the process of returning the webpage data through business processing originally is simplified into the process of directly reading and returning the webpage data from the cache pool, and smooth access experience is provided for a user.
The specific invention content is as follows:
a webpage display method comprises the following steps:
tracking a webpage data request in real time, and judging whether webpage data to be accessed are stored in a cache pool or not when the data request is webpage access;
if so, returning webpage data to be accessed to the user through the cache pool;
and otherwise, an access request is provided to the server of the webpage to be accessed through a network protocol, and the webpage data to be accessed are returned to the user for display after the server response is obtained.
Further, the method for providing an access request to a server where a webpage to be accessed is located through a network protocol, and returning webpage data to be accessed to a user for displaying after obtaining a response of the server, further comprises: and storing the webpage data to be accessed in the cache pool.
Further, still include:
and setting the webpage data storage time in the cache pool, and when the webpage data storage time reaches the set time, cleaning the corresponding webpage data.
Further, the determining whether the data of the webpage to be accessed is stored in the cache pool specifically includes: checking whether the webpage data to be accessed are stored in the cache pool or not through an sram expansion module by using an Nginx service; the cache pool is established by utilizing a redis caching technology.
A web page presentation system comprising:
the request tracking module is used for tracking a webpage data request in real time and sending a data query request to the cache pool when the data request is webpage access;
the cache pool is used for storing the webpage data; the system comprises a request tracking module, a business processing module and a data query module, wherein the request tracking module is used for receiving a data query request sent by the request tracking module and judging whether to store webpage data to be accessed or not, if so, returning the webpage data to be accessed to a user, otherwise, sending a request to the business processing module;
and the service processing module is used for receiving the request sent by the cache pool, proposing an access request to the server where the webpage to be accessed is located through a network protocol, and returning the webpage data to be accessed to the user for display after the server response is obtained.
Further, the service processing module is also used for returning the webpage data to be accessed to the user for displaying, and simultaneously sending the webpage data to be accessed to the cache pool for storing.
Further, the cache pool comprises a timer module for setting and timing the webpage data storage time, and when the webpage data storage time reaches the set time, the corresponding webpage data is cleaned.
Further, the determining whether the data of the webpage to be accessed is stored in the cache pool specifically includes: checking whether the data with the access page is stored in the cache pool or not through an sram expansion module by using an Nginx service; the cache pool is established by utilizing a redis caching technology.
An electronic device, comprising: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the method of any of the preceding claims.
A computer readable storage medium storing one or more programs which are executable by one or more processors to implement the method of any preceding claim.
The invention has the beneficial effects that:
the method directly simplifies the process of returning the page data after the code is subjected to business processing originally into the process of reading and returning the page data from the local cache pool and updating the cache pool data in real time according to the access condition of the user, greatly shortens the response time of the page when the user accesses the page, improves the smoothness of page access and provides excellent access experience for the user particularly for the e-commerce industry. Furthermore, the combination of the Ngins service and the redis caching technology can not bring pressure to the memory of the user host, and simultaneously, the program processing and response time is optimized to a great extent, and the page response speed is optimized.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
FIG. 1 is a flow chart of a web page display method according to the present invention;
FIG. 2 is a flowchart of a page display method based on Ngins service and redis caching technology according to the present invention;
FIG. 3 is a diagram of a page display system according to the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which the invention pertains.
The invention provides an embodiment of a webpage display method, as shown in fig. 1, comprising:
s11: tracking web page data requests in real time
S12: judging whether the request is a webpage access request, if so, entering S13, otherwise, returning to S11;
s13: judging whether the webpage data to be accessed are stored in a cache pool, if so, entering S14, and otherwise, entering S15;
s14: returning webpage data to be accessed to the user through the cache pool;
s15: and an access request is provided to a server where the webpage to be accessed is located through a network protocol, and after the server response is obtained, the webpage data to be accessed is returned to the user for display.
Preferably, the step S15 further includes: and returning the webpage data to be accessed to the user for displaying, and simultaneously storing the webpage data to be accessed in the cache pool.
Preferably, the storage time of the webpage data in the cache pool is set, and when the storage time of the webpage data reaches the set time, the corresponding webpage data is cleaned; for example, if the set time is 30 minutes, the storage time of certain webpage data is counted down when the webpage data enters the cache pool, and the webpage data is deleted after 30 minutes; if the user accesses the webpage again or for multiple times within the 30 minutes, returning webpage data to the user through the cache pool all the time; the function is mainly based on the consideration of data real-time performance and validity period, the webpage data in the validity period are continuously provided for the user, and the use of the webpage by the user or other operations such as killing and shopping within a time-limited second are not influenced.
Preferably, after the access request is made to the server where the page to be accessed is located through the network protocol, the method further includes: if the server response is not obtained or the response data is empty, when the access request of the webpage is tracked again, the access request is directly provided to the server where the webpage is located through a network protocol; the process saves the time of inquiring the cache pool again, and further optimizes the page response time.
Preferably, the determining whether the data of the webpage to be accessed is stored in the cache pool specifically includes: checking whether the webpage data to be accessed are stored in the cache pool or not through an sram expansion module by using an Nginx service; the cache pool is established by utilizing a redis cache technology; the Nginx service has the characteristics and advantages of high stability, low system consumption and the like, occupies small memory, has strong concurrency capability and can optimize program processing and response time to a great extent; the redis cache technology has simplified data reading operation, and has the characteristics of expandable reading operation, low data redundancy, reasonable storage structure and small occupied memory; the combination of the Ngins service and the redis caching technology can not bring pressure to a host memory, and meanwhile, the program processing and response time is optimized to a great extent, and the page response speed is optimized.
The present invention provides an embodiment of a page display method based on a Ngins service and a redis caching technology, which is used to explain a process of performing page display by using the Ngins service and the redis caching technology, and as shown in fig. 2, the method includes:
acquiring a data request of a user for accessing a webpage, checking whether webpage data to be accessed are stored in a cache pool or not through an sram expansion module by using an Nginx service, reading the webpage data to be accessed from the cache pool if the webpage data to be accessed are stored in the cache pool, and returning the webpage data to the user for displaying; otherwise, sending an access request (namely access request service processing) to a server where the webpage to be accessed is located through the PHP network technology, storing the data to be accessed in a cache pool after the server response is obtained, and simultaneously returning the data to the user for displaying.
The present invention provides an embodiment of a web page display system, as shown in fig. 3, including:
the request tracking module 31 is configured to track a web page data request in real time, and send a data query request to the cache pool 32 when the data request is a web page access;
a cache pool 32 for storing web page data; the data query module is used for receiving a data query request sent by the request tracking module 31, judging whether to store webpage data to be accessed, if so, returning the webpage data to be accessed to the user, otherwise, sending a request to the service processing module 33;
and the service processing module 33 is configured to receive the request sent by the cache pool 32, submit an access request to the server where the webpage to be accessed is located through a network protocol, and return the webpage data to be accessed to the user for display after the server response is obtained.
Preferably, the service processing module is further configured to send the data of the web page to be accessed to the cache pool for storage while returning the data of the web page to be accessed to the user for display.
Preferably, the cache pool 32 includes a timer module, which is used to set and time the webpage data storage time, and when the webpage data storage time reaches the set time, the corresponding webpage data is cleaned.
Preferably, after the access request is made to the server where the page to be accessed is located through the network protocol, the service processing module 33 is further configured to: if no server response is obtained or the response data is null, sending a direct access request instruction of the webpage to the request tracking module 31; when the request tracking module 31 tracks the access request of the web page again, the access request is directly sent to the service processing module 33.
Preferably, the determining whether the data of the webpage to be accessed is stored in the cache pool specifically includes: checking whether the data with the access page is stored in the cache pool or not through an sram expansion module by using an Nginx service; the cache pool is established by utilizing a redis caching technology.
An embodiment of the present invention further provides an electronic device, as shown in fig. 4, which can implement the processes in the embodiments shown in fig. 1-2 of the present invention, and as shown in fig. 4, the electronic device may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged inside a space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to each circuit or device of the electronic apparatus; the memory 43 is used for storing executable program code; the processor 42 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 43, for executing the method described in any of the foregoing embodiments.
The specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code may refer to the description of the embodiment shown in fig. 1-2 of the present invention, and are not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
Embodiments of the present invention also provide a computer readable storage medium storing one or more programs, which are executable by one or more processors to implement the method of any of the preceding embodiments.
The method directly simplifies the process of returning the page data after the code is subjected to business processing originally into the process of reading and returning the page data from the local cache pool and updating the cache pool data in real time according to the access condition of the user, greatly shortens the response time of the page when the user accesses the page, improves the smoothness of page access and provides excellent access experience for the user particularly for the e-commerce industry. Furthermore, the combination of the Ngins service and the redis caching technology can not bring pressure to the memory of the user host, and simultaneously, the program processing and response time is optimized to a great extent, and the page response speed is optimized.
The system embodiment of the invention is similar to the method embodiment in part of the process, so the description of the system embodiment is simpler, and the method embodiment is referred to in corresponding parts.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (10)

1. A webpage display method is characterized by comprising the following steps:
tracking a webpage data request in real time, and judging whether webpage data to be accessed are stored in a cache pool or not when the data request is webpage access;
if so, returning webpage data to be accessed to the user through the cache pool;
and otherwise, an access request is provided to the server of the webpage to be accessed through a network protocol, and the webpage data to be accessed are returned to the user for display after the server response is obtained.
2. The method of claim 1, wherein the access request is provided to the server where the web page to be accessed is located through a network protocol, and after the server response is obtained, the data of the web page to be accessed is returned to the user for display, and the method further comprises:
and storing the webpage data to be accessed in the cache pool.
3. The method of claim 2, wherein the method further comprises:
and setting the webpage data storage time in the cache pool, and when the webpage data storage time reaches the set time, cleaning the corresponding webpage data.
4. The method according to any one of claims 1 to 3, wherein the determining whether the data of the web page to be accessed is stored in the cache pool specifically includes: checking whether the webpage data to be accessed are stored in the cache pool or not through an sram expansion module by using an Nginx service; the cache pool is established by utilizing a redis caching technology.
5. A web page presentation system, comprising:
the request tracking module is used for tracking a webpage data request in real time and sending a data query request to the cache pool when the data request is webpage access;
the cache pool is used for storing the webpage data; the system comprises a request tracking module, a business processing module and a data query module, wherein the request tracking module is used for receiving a data query request sent by the request tracking module and judging whether to store webpage data to be accessed or not, if so, returning the webpage data to be accessed to a user, otherwise, sending a request to the business processing module;
and the service processing module is used for receiving the request sent by the cache pool, proposing an access request to the server where the webpage to be accessed is located through a network protocol, and returning the webpage data to be accessed to the user for display after the server response is obtained.
6. The system of claim 5, wherein the business processing module is further configured to send the data of the web page to be accessed to the cache pool for storage while returning the data of the web page to be accessed to the user for display.
7. The system of claim 6, wherein the cache pool comprises a timer module for setting and timing a web page data saving time, and when the web page data saving time reaches the set time, cleaning the corresponding web page data.
8. The system according to any one of claims 5 to 7, wherein the determining whether the data of the web page to be accessed is stored in the cache pool specifically includes: checking whether the data with the access page is stored in the cache pool or not through an sram expansion module by using an Nginx service; the cache pool is established by utilizing a redis caching technology.
9. An electronic device, characterized in that the electronic device comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the method of any of the preceding claims.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores one or more programs which are executable by one or more processors to implement the method of any preceding claim.
CN201910256463.7A 2019-04-01 2019-04-01 Webpage display method, system, electronic equipment and medium Pending CN111767485A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910256463.7A CN111767485A (en) 2019-04-01 2019-04-01 Webpage display method, system, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910256463.7A CN111767485A (en) 2019-04-01 2019-04-01 Webpage display method, system, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN111767485A true CN111767485A (en) 2020-10-13

Family

ID=72718487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910256463.7A Pending CN111767485A (en) 2019-04-01 2019-04-01 Webpage display method, system, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN111767485A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676531A (en) * 2021-08-16 2021-11-19 北京百度网讯科技有限公司 E-commerce flow peak clipping method and device, electronic equipment and readable storage medium
CN113836468A (en) * 2021-09-27 2021-12-24 山东亿云信息技术有限公司 Method and system for improving price index website access throughput by utilizing nginx and redis

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446222A (en) * 2011-12-22 2012-05-09 华为技术有限公司 Method, device and system of webpage content preloading
CN103455478A (en) * 2012-05-21 2013-12-18 腾讯科技(深圳)有限公司 Webpage access accelerating method and device
CN105930538A (en) * 2016-06-27 2016-09-07 北京奇虎科技有限公司 Webpage accessing request processing method and server
CN107809470A (en) * 2017-10-12 2018-03-16 北京京东尚科信息技术有限公司 The method and apparatus of application program automatically dispose

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446222A (en) * 2011-12-22 2012-05-09 华为技术有限公司 Method, device and system of webpage content preloading
CN103455478A (en) * 2012-05-21 2013-12-18 腾讯科技(深圳)有限公司 Webpage access accelerating method and device
CN105930538A (en) * 2016-06-27 2016-09-07 北京奇虎科技有限公司 Webpage accessing request processing method and server
CN107809470A (en) * 2017-10-12 2018-03-16 北京京东尚科信息技术有限公司 The method and apparatus of application program automatically dispose

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676531A (en) * 2021-08-16 2021-11-19 北京百度网讯科技有限公司 E-commerce flow peak clipping method and device, electronic equipment and readable storage medium
CN113676531B (en) * 2021-08-16 2023-10-31 北京百度网讯科技有限公司 E-commerce flow peak clipping method and device, electronic equipment and readable storage medium
CN113836468A (en) * 2021-09-27 2021-12-24 山东亿云信息技术有限公司 Method and system for improving price index website access throughput by utilizing nginx and redis
CN113836468B (en) * 2021-09-27 2024-05-07 山东亿云信息技术有限公司 Method and system for improving price index website access throughput by using nginx and redis

Similar Documents

Publication Publication Date Title
US11036820B2 (en) Page loading method and electronic device
US10127294B2 (en) Idempotency of application state data
CN103714141A (en) Information pushing method and device
CN108875046A (en) A kind of storage system access method, device and electronic equipment
US20170155741A1 (en) Server, method, and system for providing service data
CN111767485A (en) Webpage display method, system, electronic equipment and medium
US11915158B2 (en) Cross-domain action prediction
WO2014146441A1 (en) Method, server and system for processing task data
US20190107929A1 (en) Method and device for loading content of page, and electronic device
US20170155739A1 (en) Advertisement data processing method and router
CN114036431A (en) Page cache skipping method and device, electronic equipment and storage medium
CN104424116B (en) A kind of method and system of built-in browser disk buffering
CN116271850A (en) Data processing method, device, system and electronic device
CN105653539A (en) Index distributed storage implement method and device
EP3036628A1 (en) Application implemented context switching
CN104965692A (en) Method and system for displaying data across multiple processes in a desktop application
CN101420490A (en) Data reading method and device
CN105320777A (en) Application program recommendation method and device
CN111767494A (en) Commodity detail page linkage display method and system, electronic equipment and medium
CN106535152B (en) Application data processing method, device and system based on terminal
US20130325619A1 (en) Saving electronic coupons for future use
CN111318023A (en) Game data processing method and device, storage medium and electronic equipment
CN103001924A (en) Method, network server and system for accessing pages
US20160292281A1 (en) Obtaining content based upon aspect of entity
CN115878510A (en) Page table modifying method, page table verifying method, page table modifying device, page table verifying device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201013

RJ01 Rejection of invention patent application after publication