Page rendering processing method, device and equipment and readable storage medium

A processing method and page technology, applied in the field of web page rendering
CN111177601APending Publication Date: 2020-05-19BEIJING DIDI INFINITY TECH & DEV

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING DIDI INFINITY TECH & DEV
Publication Date
2020-05-19

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiment of the invention provides a page rendering processing method, device and equipment and a readable storage medium. According to the method provided by the embodiment of the invention, the method includes: presetting the effective duration of the cache data of the module, and after the js file is loaded into the rendering module according to the storage path of the js file corresponding to the access request of the client, judging whether the cache data of the module in the js file exists in the cache or not; if yes, deleting the cache data of which the cache duration exceeds thepreset effective duration in the cache data of the modules in the js file from the cache, and caching the modules corresponding to the deleted cache data again; if not, caching the modules in the js file. According to the embodiment of the invention, when the module sends the change, the cache data of the module in the cache can be updated in time without restarting the NodeJS service, so that theproblem that a front-end page is not updated in time because the NodeJS service still uses the cache data of the module before the change can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] Embodiments of the present invention relate to the technical field of web page rendering, and in particular, to a page rendering processing method, device, device, and readable storage medium. Background technique

[0002] NodeJS is a JavaScript runtime environment that enables JavaScript to run without a browser, also known as Node.js. The NodeJS service is built between the front-end and back-end as the middle layer to undertake the functions of converting data, connecting services, and routing design, so as to achieve better decoupling of the front-end and back-end.

[0003] At present, the NodeJS service itself has a module cache loading mechanism. When rendering a page, after loading the js file corresponding to the client request into the rendering module, the server will determine whether each module in the js file (the library called inside the js file function or other method) has been cached, if not, then cache each module in the js file; if...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More