Website hot update publishing method, device, equipment and storage medium

By establishing multiple data tables and setting read and write permissions, cache them in memory, and generating multiple versions of the website pages, the time-consuming and laborious problem of website updates in the existing technology is solved, and efficient and stable hot updates and second-level rollbacks are achieved.

CN113986274BActive Publication Date: 2025-08-22SHENZHEN GAOTENG TECH SERVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111028735.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-02
Publication Date
2025-08-22
Estimated Expiration
2041-09-02

AI Technical Summary

Technical Problem

The existing website update method is time-consuming and labor-intensive, and may cause problems in special circumstances, making it impossible to achieve efficient and stable thermal updates.

Method used

By establishing multiple data tables and setting read and write permissions, caching them into memory, and generating multiple versions of the website pages, it supports multi-environment deployment and permission management, simplifying the audit process and realizing hot updates of the website.

Benefits of technology

Improves the performance and stability of website updates, simplifies the audit process, supports multi-environment deployment, and realizes second-level rollback and efficient website hot updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113986274B_ABST
    Figure CN113986274B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of Internet technology and discloses a website hot update publishing method, apparatus, device, and storage medium. The website hot update publishing method comprises: establishing multiple data tables based on website data; caching the data tables in memory; updating the website data to correspondingly update the data tables in the memory; generating a new website page based on the updated data tables in the memory and distributing it to a designated environment for review; and if the review passes, publishing the new website page to perform a website hot update. The present invention simplifies the website update review process, improves the performance and stability of website hot updates, and increases the real-time update rate of the website.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a website hot update publishing method, device, equipment and storage medium. Background Art

[0002] As information technology becomes increasingly networked, more and more websites are requiring real-time content. Therefore, web pages are being equipped with hot-update functionality, enabling them to automatically and quickly display information such as stock quotes, weather information, or resource monitoring data that changes over time. Hot-updates automatically refresh websites to fix bugs and publish real-time data without requiring a page restart, thus avoiding the long review wait times and the costs associated with multiple rejections.

[0003] Currently, most website pages are updated by direct replacement. This method not only requires the reconstruction of the entire page code, which is time-consuming and labor-intensive, but also, in some special cases, the replacement of the original page will lead to a series of additional problems. Summary of the Invention

[0004] In view of the above-mentioned shortcomings, the purpose of the present invention is to provide a website hot update publishing method, device, equipment and storage medium, which can complete high-performance and stable hot updates of websites, simplify the website update review process, and improve the real-time update rate of websites.

[0005] A first aspect of the present invention provides a website hot update publishing method, comprising:

[0006] Create multiple data tables based on website data;

[0007] Cache the data table into memory;

[0008] updating the website data to correspondingly update the data table in the memory;

[0009] Generate new website pages based on the updated data table in the memory and distribute them to a designated environment for review;

[0010] If the review is passed, the new website page will be published to perform a hot update of the website.

[0011] Optionally, in a first implementation of the first aspect of the present invention, establishing multiple data tables based on the website data includes:

[0012] According to the underlying dependent data of the website, multiple data tables are established, and data read and write permissions are set for the multiple data tables.

[0013] Optionally, in a second implementation of the first aspect of the present invention, the read and write permissions are divided according to different content modules of the website.

[0014] Optionally, in a third implementation of the first aspect of the present invention, caching the data table into a memory includes: backing up the data table as background data, pre-release data, and production data;

[0015] Generating a new website page based on the updated data table in the memory and distributing it to a designated environment for review includes:

[0016] According to the updated background data, pre-release data and production data in the memory, a background page, a pre-release page and a production page are generated accordingly and distributed to a corresponding designated environment for the pre-release page review.

[0017] Optionally, in a fourth implementation of the first aspect of the present invention, the background data is used for background management and editing of the website, the pre-release data is used for review, and the production data is used for external release to achieve hot updates of the website.

[0018] Optionally, in the fifth implementation of the first aspect of the present invention, the website hot update publishing method further includes: after updating the data table in the memory, synchronizing the updated background data to the pre-release data and / or the production data.

[0019] Optionally, in the fifth implementation of the first aspect of the present invention, after publishing the new website page for website hot update if the review is passed, it also includes: storing the new website page generated each time in a folder with a timestamp.

[0020] A second aspect of the present invention provides a website hot update publishing device, the website hot update publishing device comprising:

[0021] Data configuration module, which creates multiple data tables based on website data;

[0022] A memory data module, caching the data table into memory;

[0023] An updating module, configured to update the website data to correspondingly update the data table in the memory;

[0024] A generation module, configured to generate new website pages based on the updated data table in the memory and distribute the new pages to a designated environment for review;

[0025] The publishing module is used to publish the new website page to perform a hot update of the website if the review is passed.

[0026] The third aspect of the present invention provides an electronic device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the electronic device executes any one of the above-mentioned website hot update publishing methods.

[0027] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed by a processor, the website hot update publishing method described in any one of the above is implemented.

[0028] In the technical solution provided by the present invention, multi-version websites are generated through multi-version underlying data sources, multi-environment deployment is supported, different read and write permissions are set for data tables according to different content module categories of the website, the website update review process is simplified, and the performance and stability of the website hot update are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 This is a flowchart of an embodiment of a website hot update publishing method according to an embodiment of the present invention;

[0030] Figure 2 This is a functional module diagram of an embodiment of a website hot update publishing device according to an embodiment of the present invention;

[0031] Figure 3 FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The embodiments of the present invention provide a website hot update publishing method, device, equipment and storage medium to improve the problems in the prior art that website updates do not support multi-environment deployment and permission management, resulting in poor stability when new content is released and extremely complex review processes.

[0033] The terms "first," "second," "third," "fourth," and the like (if any) in the description and claims of the present invention and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatus.

[0034] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 An embodiment of a website hot update publishing method according to an embodiment of the present invention includes:

[0035] S10. Create multiple data tables based on website data;

[0036] It is understandable that the execution subject of the present invention may be a control device, or a terminal or a server, which is not limited here. The embodiment of the present invention is described by taking a server as the execution subject as an example.

[0037] Based on the data that the website relies on at the bottom layer, the underlying data of the website is collected as the most original performance data of the website. In addition to the structured content of the page, it also includes at least one type of page title, page turning information, user login status or submission field; multiple databases / tables are established for data management; read and write permissions are further set for multiple databases of the website to classify different content modules of the installed website so that different background operators can update them with different permissions; among them, read and write permissions can be managed using a separate data table, which is referred to as the permission data table below to distinguish website data.

[0038] S20, caching the data table into memory;

[0039] According to the permission data table, the website data is cached in the memory and divided into three types: background data, pre-release data and production data; the background data is used for back-end management and editing of the website, the pre-release data is used to generate the pre-release page and then give it to the back-end operator for review, and the production data is used to generate the production page, that is, it is released to the outside after the review is completed, so as to realize the hot update of the website.

[0040] S30, updating the website data to correspondingly update the data table in the memory;

[0041] When the website needs to be updated, the updated data corresponds to changes in multiple data tables cached in the memory, and the background data can also be synchronized to the pre-release data and / or the production data through button operation.

[0042] S40: Generate a new website page based on the updated data table in the memory and distribute it to a designated environment for review;

[0043] When the backend triggers the update button, the corresponding pages (backend page, pre-release page, and production page) are generated for the data in memory and distributed to the corresponding pre-release environment and production environment in sequence. Backend operators review the generated pre-release pages in the pre-release environment.

[0044] S50: If the review is passed, the new website page is published to perform a hot update of the website.

[0045] Relevant personnel review the pre-release page in the pre-release environment. After the review is completed, the official release can be carried out to publish the edited background page, that is, the production page, to achieve hot update of the website.

[0046] Furthermore, in the second implementation of the first aspect of the present invention, after publishing the new website page for website hot update if the review is passed, it also includes: storing the new website page generated each time in a folder with a timestamp.

[0047] Each time a new version of the static page of the production page is generated, it will be stored in a specific folder. The folder has a timestamp of year, month, day, hour, minute and second. By simply displaying the folder list on the background page, the background operator can see all previous versions, select the version to be rolled back, click confirm, and the program can soft-link the folder content with the corresponding timestamp to the external directory (production environment) to achieve a rollback to the updated web page version at any time in seconds.

[0048] The website's multi-version management mechanism reuses static web pages produced at different times, using minimal computing resources to achieve second-level rollback of historical versions of the website.

[0049] The above describes the website hot update publishing method in the embodiment of the present invention. The following describes the website hot update publishing device in the embodiment of the present invention. Figure 2 In an embodiment of the present invention, a website hot update publishing device includes:

[0050] Data configuration module 410, creating multiple data tables based on website data;

[0051] A memory data module 420 caches the data table into memory;

[0052] An updating module 430, configured to update the website data to correspondingly update the data table in the memory;

[0053] A generation module 440 is used to generate a new website page based on the updated data table in the memory and distribute it to a designated environment for review;

[0054] The publishing module 450 is used to publish the new website page to perform a website hot update if the review is passed.

[0055] In an embodiment of the present invention, a data configuration module 410 establishes multiple data tables based on the underlying dependency data of the website; a memory data module 420 caches multiple data tables and performs permission classification; an update module 430 is used to change the data in the cached multiple data tables when an update is triggered; a generation module 440 is used to generate multiple independently operable pages, such as background pages, pre-release pages, and production pages, and multiple operation pages can be synchronized with each other; a publishing module 450 is used to publish the updated data on the website.

[0056] Optionally, in this embodiment, the website hot update publishing device also includes a synchronization module for synchronizing the data of the background page to the pre-release page or the production page; a static storage module for storing each generated and updated new website page in a folder with a timestamp after the new website page is released for website hot update if the review is passed.

[0057] Figure 2 The website hot update publishing device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The electronic device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0058] Figure 3 : is a structural diagram of an electronic device provided by an embodiment of the present invention, which may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage medium 530 can be temporary storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the electronic device 500. Furthermore, the processor 510 can be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on an electronic device 500.

[0059] An electronic device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, Free BSD, etc. It will be understood by those skilled in the art that Figure 3The structure of an electronic device shown does not limit the electronic device and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0060] The present invention also provides an electronic device, which includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes the steps of the website hot update publishing method in the above embodiments.

[0061] The present invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium, or a volatile computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer executes the steps of the website hot update publishing method. Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be a computer-readable instruction, a data structure, a program module or other data. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0062] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: USB flash drive, mobile hard disk, memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.

[0063] The website hot update publishing method of the present application sets read and write permissions for the data table established for the underlying data of the website. The backend operators of each content module of the website have different operation interfaces to achieve isolation of data modification permissions and simplify the review process. It also supports multi-environment deployment, completely independent pre-release and production environments, and can achieve WYSIWYG modification of web pages through background data synchronization, further improving the review process. In addition, the website's multi-version management mechanism reuses static web pages produced at each moment, and uses minimal computing resources to achieve second-level rollback of historical versions of the website. This improves work efficiency when making and updating web pages, reduces the workload of web page maintenance, and improves the efficiency of web page updates.

[0064] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features thereof can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A website hot update publishing method, characterized in that: The website hot update publishing method includes: Establishing multiple data tables based on website data, wherein the website data is the underlying dependent data of the website, including page structured content and at least one type of page title, page turning information, user login status or submission field; Cache the data table in memory, and back up the data table as background data, pre-release data, and production data; updating the website data to correspondingly update the data table in the memory; Generate new website pages based on the updated data table in the memory and distribute them to a designated environment for review; Wherein, generating a new website page according to the updated data table in the memory and distributing it to the designated environment for review includes: generating a background page, a pre-release page, and a production page according to the updated background data, the pre-release data, and the production data in the memory, and distributing them to the corresponding designated environment to review the pre-release page; If the review is passed, the new website page will be published to perform a hot update of the website.

2. The website hot update publishing method according to claim 1, characterized in that: The establishment of multiple data tables based on website data includes: According to the underlying dependent data of the website, multiple data tables are established, and data read and write permissions are set for the multiple data tables.

3. The website hot update publishing method according to claim 2, characterized in that: The read and write permissions are divided according to different content modules of the website.

4. The website hot update publishing method according to claim 1, characterized in that: The background data is used for background management and editing of the website, the pre-release data is used for review, and the production data is used for external release.

5. The website hot update publishing method according to claim 1, characterized in that: After the new website page is published to perform a website hot update if the review is passed, the method further includes: Store each new website page generated in a folder with a timestamp.

6. A website hot update publishing device, characterized in that: The website hot update publishing device includes: A data configuration module, which establishes multiple data tables based on website data, wherein the website data is the underlying dependent data of the website, including page structured content and at least one type of page title, page turning information, user login status or submission field; A memory data module caches the data table into memory and backs up the data table as background data, pre-release data and production data; An updating module, configured to update the website data to correspondingly update the data table in the memory; A generation module, configured to generate new website pages based on the updated data table in the memory and distribute the new pages to a designated environment for review; A publishing module is used to publish the new website page for hot updating of the website if the review is passed; Among them, the generation module is specifically used to: generate background pages, pre-release pages and production pages according to the updated background data, pre-release data and production data in the memory and distribute them to the corresponding designated environment to perform the pre-release page review.

7. An electronic device, characterized in that: The electronic device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the electronic device to execute the website hot update publishing method according to any one of claims 1 to 5.

8. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the website hot update publishing method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Database updating method and apparatus

    CN105468637A

  • Web page updating method and website page updating system

    CN108170458A