CN107346305B - Local caching method and device based on Velocity block instruction - Google Patents

Local caching method and device based on Velocity block instruction Download PDF

Info

Publication number
CN107346305B
CN107346305B CN201610288635.5A CN201610288635A CN107346305B CN 107346305 B CN107346305 B CN 107346305B CN 201610288635 A CN201610288635 A CN 201610288635A CN 107346305 B CN107346305 B CN 107346305B
Authority
CN
China
Prior art keywords
block instruction
cache
data related
velocity block
velocity
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.)
Active
Application number
CN201610288635.5A
Other languages
Chinese (zh)
Other versions
CN107346305A (en
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610288635.5A priority Critical patent/CN107346305B/en
Publication of CN107346305A publication Critical patent/CN107346305A/en
Application granted granted Critical
Publication of CN107346305B publication Critical patent/CN107346305B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The invention discloses a local caching method based on a Velocity block instruction in a server, which comprises the following steps: receiving a request for accessing a hypertext markup language (HTML) page with a Velocity block instruction, which is sent by a client; checking whether data related to a Velocity block instruction requested by a client is updated in a cache; and returning the update state and the caching key value to the client.

Description

Local caching method and device based on Velocity block instruction
Technical Field
The present disclosure relates generally to local caching and, more particularly, to a local caching method and apparatus for a Velocity block based instruction.
Background
At present, the websites facing users are increasingly gorgeous, and the information amount is also increasingly large, but the response time is increasingly long. Response time is a very important indicator for user experience, and if the response time of a website is too long and exceeds the endurance of a user, the user is lost. If only a small number of users visit a system, the response time of the system is very fast, but as the number of users increases, the system becomes more and more stressed, even enters a false dead state or is down, and cannot respond to the requests of the users.
Caching techniques may solve these problems well, use of caching may greatly reduce database operations, and significantly reduce system stress. The most common caching technique at present is simply caching the traffic data, which is read directly from the cache when it is needed.
The existing caching technology is only to cache business data at the back end (e.g., a server), and if the information amount of a website is very large, the cache needs to be frequently accessed to read data. Frequent access to the cache necessarily incurs overhead in the database, as the cached data may fail.
Disclosure of Invention
Based on the defects in the prior art, a local caching method and device based on a Velocity block instruction are provided. According to the method, a certain hypertext markup language (HTML) fragment on a page is cached through a Velocity self-defined block instruction, and the block instruction can be injected into a Velocity template of a front end (such as a client), so that data interaction of the front end and the back end is realized.
In one aspect of the present invention, a local caching method based on a Velocity block instruction in a server is disclosed, which comprises:
receiving a request for accessing a hypertext markup language (HTML) page with a Velocity block instruction, which is sent by a client;
checking whether data related to a Velocity block instruction requested by a client is updated in a cache; and
and returning the update state and the caching key value to the client.
Preferably, when the cache has no data related to the Velocity block instruction and the database has no data related to the Velocity block instruction, the returned update state is 0;
when the cache does not have data related to the Velocity block instruction but the database has data related to the Velocity block instruction, the returned update state is 1;
when the cache has data related to the Velocity block instruction but the database does not have the data related to the Velocity block instruction, the returned update state is 0;
when the cache has data related to the Velocity block instruction and the database also has data related to the Velocity block instruction but the data related to the Velocity block instruction are inconsistent, the returned update state is 1; and
when there is data in the cache related to the Velocity block instruction and there is also data in the database related to the Velocity block instruction and the data related to the Velocity block instruction are consistent, the returned update status is-1.
Preferably, before returning the update status and the cache key to the client, the method further comprises:
if the cache is checked for data updates associated with the Velocity block instruction, the data associated with the Velocity block instruction in the cache is updated by updating the cache with the data of the database associated with the Velocity block instruction.
In another aspect of the present invention, a local caching method based on a Velocity block instruction in a client is disclosed, which includes:
receiving an update state and cache key values from a server; and
and if the update state is not 0, checking whether the HTML script in the Velocity block instruction in the Velocity module is changed or not in the client.
Preferably, the method further comprises:
if the update status is 0, no page rendering is performed.
Preferably, checking in the client whether the HTML script in the Velocity block instruction in the Velocity module changes comprises:
acquiring the content of the current HTML script through a node object in the Velocity block instruction; and
the content of the script previously saved in the cache is retrieved and compared with the content of the current HTML script.
Preferably, the method further comprises:
when the comparison result is consistent, judging whether the data related to the Velocity block instruction is updated or not through the returned update state;
if the data related to the Velocity block instruction is not updated, the data related to the Velocity block instruction stored in the cache is obtained through the cache key value, and the data related to the Velocity block instruction is rendered on a page.
Preferably, the method further comprises:
if the data related to the Velocity block instruction is updated, executing the script in the block instruction, rendering the executed result as the data related to the Velocity block instruction to a page, and writing the data related to the Velocity block instruction into a cache through the returned cache key value.
Preferably, the method further comprises:
and when the comparison result is inconsistent, storing the content of the current HTML script in a cache, executing the script in the block instruction, rendering the executed result as data related to the Velocity block instruction to a page, and writing the data related to the Velocity block instruction into the cache through a returned cache key value.
In another aspect of the present invention, a local caching apparatus based on a Velocity block instruction in a server is disclosed, including:
the receiving module is configured to receive a request sent by a client for accessing a hypertext markup language (HTML) page with a Velocity block instruction;
the checking module is configured to check whether data related to the Velocity block instruction requested by the client is updated in the cache; and
and the sending module is configured to return the update state and the caching key value to the client.
Preferably, when the cache has no data related to the Velocity block instruction and the database has no data related to the Velocity block instruction, the returned update state is 0;
when the cache does not have data related to the Velocity block instruction but the database has data related to the Velocity block instruction, the returned update state is 1;
when the cache has data related to the Velocity block instruction but the database does not have the data related to the Velocity block instruction, the returned update state is 0;
when the cache has data related to the Velocity block instruction and the database also has data related to the Velocity block instruction but the data related to the Velocity block instruction are inconsistent, the returned update state is 1; and
when there is data in the cache related to the Velocity block instruction and there is also data in the database related to the Velocity block instruction and the data related to the Velocity block instruction are consistent, the returned update status is-1.
Preferably, the apparatus further comprises:
an update module configured to update the data related to the Velocity block instruction in the cache by updating the cache with the data of the database related to the Velocity block instruction if the data related to the Velocity block instruction is checked in the cache before returning the update status and the cache key to the client.
In another aspect of the present invention, a local caching apparatus based on a Velocity block instruction in a client is disclosed, including:
the receiving module is configured to receive the update state and the cache key value from the server; and
a checking module configured to check in the client whether a hypertext markup language (HTML) script in a Velocity block instruction in a Velocity module changes if the update status is not 0.
Preferably, the apparatus further comprises:
and the rendering module is configured to not perform page rendering if the update state is 0.
Preferably, the checking module is further configured to:
acquiring the content of the current HTML script through a node object in the Velocity block instruction; and
the content of the script previously saved in the cache is retrieved and compared with the content of the current HTML script.
Preferably, the checking module is further configured to:
when the comparison result is consistent, judging whether the data related to the Velocity block instruction is updated or not through the returned update state;
if the data related to the Velocity block instruction is not updated, the data related to the Velocity block instruction stored in the cache is obtained through the cache key value, and the data related to the Velocity block instruction is rendered on a page.
Preferably, the checking module is further configured to:
if the data related to the Velocity block instruction is updated, executing the script in the block instruction, rendering the executed result as the data related to the Velocity block instruction to a page, and writing the data related to the Velocity block instruction into a cache through the returned cache key value.
Preferably, the checking module is further configured to:
and when the comparison result is inconsistent, storing the content of the current HTML script in a cache, executing the script in the block instruction, rendering the executed result as data related to the Velocity block instruction to a page, and writing the data related to the Velocity block instruction into the cache through a returned cache key value.
The method caches a certain HTML fragment on the page through the vector custom block instruction. The user-defined block instruction can automatically cache the structure of the program contained in the instruction after execution, check whether HTML fragment data exists in the cache when a user requests a page, if so, directly output the HTML fragment data to the page, otherwise, execute a script in the block instruction, and output the executed result to the page and simultaneously store the HTML fragment data in the cache for the next use.
Drawings
Other details, aspects, and advantages of the disclosure will become apparent from the following description of exemplary embodiments, taken in conjunction with the accompanying exemplary drawings, in which:
FIG. 1 is a diagram that schematically illustrates a local caching method in a server based on a Velocity block instruction, in accordance with an embodiment of the present invention;
FIG. 2 is a diagram that illustrates a local caching method in a client based on a Velocity block instruction according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a local caching device in a server based on a Velocity block instruction, according to an embodiment of the present invention; and
FIG. 4 is a diagram illustrating a local caching device in a client based on a Velocity block instruction according to an embodiment of the present invention.
The figures do not show all of the circuitry or structures of the embodiments. The same reference numbers will be used throughout the drawings to refer to the same or like parts or features.
Detailed Description
Specific embodiments of the present invention will be described in detail below, and it should be noted that the embodiments described herein are only for illustration and are not intended to limit the present invention. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be apparent to one of ordinary skill in the art that: it is not necessary to employ these specific details to practice the present invention. In other instances, well-known circuits, materials, or methods have not been described in detail in order to avoid obscuring the present invention.
Throughout the specification, reference to "one embodiment," "an embodiment," "one example," or "an example" means: the particular features, structures, or characteristics described in connection with the embodiment or example are included in at least one embodiment of the invention. Thus, the appearances of the phrases "in one embodiment," "in an embodiment," "one example" or "an example" in various places throughout this specification are not necessarily all referring to the same embodiment or example. Furthermore, the particular features, structures, or characteristics may be combined in any suitable combination and/or sub-combination in one or more embodiments or examples. Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The local caching method based on the Velocity instruction is very suitable for caching list pages, such as commodity list pages, active list pages and other pages needing paging, and the pages are updated less frequently. This list page may be cached locally by the Velocity block instruction.
A local caching method 100 based on a Velocity block instruction in a server according to an embodiment of the present invention will be described with reference to fig. 1.
Firstly, defining a vector local block instruction # partCache ("$ region", "$ status", "$ key"), wherein the instruction name is partCache, the instruction has three parameters, and the first parameter represents a cache region; the second parameter indicates whether the data is updated, i.e., the update status of the data, which is represented by three values, 1 indicating that the data is updated, -1 indicating that the data is not updated, and 0 indicating that the data is not updated; the third parameter represents a key value corresponding to the cached data. After the instruction is defined, the instruction can be injected into the Velocity template in a way of following the syntax format of Velocity.
When the user accesses the HTML page into which the instruction is injected through the client, the server receives a request sent by the client to access the HTML page having the Velocity block instruction at step S101.
Then, in step S102, the server checks in the cache whether the data related to the Velocity block instruction requested by the client is updated. The method of inspection includes: (1) if the cache does not have data related to the Velocity block instruction, and the database does not have data related to the Velocity block instruction, the page is considered to have no data; (2) if the cache does not have data related to the Velocity block instruction, but the database has data related to the Velocity block instruction, the data is considered to be updated; (3) if the cache has data related to the Velocity block instruction, but the database does not have the data related to the Velocity block instruction, the page is considered to have no data; (4) if the cache has data related to the Velocity block instruction, and the database also has data related to the Velocity block instruction, but the data are not consistent, the data are considered to be updated; and (5) if the data related to the Velocity block instruction exists in the cache, the data related to the Velocity block instruction also exists in the database, and the data are consistent, the data are not considered to be updated. If the cache is checked for data updates associated with the Velocity block instruction, the data associated with the Velocity block instruction in the cache is updated by updating the cache with the data of the database associated with the Velocity block instruction.
Finally, in step S103, the server returns the update status and the cache key to the client.
A local caching method 200 based on a Velocity block instruction in a client according to an embodiment of the present invention will be described with reference to fig. 2.
In step S201, the client receives the update status and the cache key from the server.
In step S202, it is determined whether the update state is 0.
If the update status is not 0, in step S203, it is checked in the client whether the HTML script in the Velocity block instruction in the Velocity module is changed.
If the update status is 0, in step S204, no page rendering is performed.
Checking in the client whether the HTML script in the Velocity block instruction in the Velocity module changes includes: acquiring the content of the current HTML script through a node object in the Velocity block instruction; and obtaining the content of the script previously stored in the cache, and comparing the content of the script in the cache with the content of the current HTML script.
When the comparison result is consistent (the HTML script in the Velocity block instruction is not modified), whether the data related to the Velocity block instruction is updated or not is judged according to the returned updating state. If the data related to the Velocity block instruction is not updated, the data related to the Velocity block instruction stored in the cache is obtained through the cache key value, and the data related to the Velocity block instruction is rendered on a page. If the data related to the Velocity block instruction is updated, executing the script in the block instruction, rendering the executed result as the data related to the Velocity block instruction to a page, and writing the data related to the Velocity block instruction into a cache through the returned cache key value.
And when the comparison result is inconsistent, storing the content of the current HTML script in a cache, executing the script in the block instruction, rendering the executed result as data related to the Velocity block instruction to a page, and writing the data related to the Velocity block instruction into the cache through a returned cache key value.
FIG. 3 is a diagram illustrating a local caching device 300 based on a Velocity block instruction in a server according to an embodiment of the invention. The apparatus 300 includes a receiving module 310, a checking module 320, and a transmitting module 330.
The receiving module 310 is configured to receive a request sent by a client to access a hypertext markup language (HTML) page having a Velocity block instruction. The checking module 320 is configured to check in the cache whether data requested by the client relating to the Velocity block instruction is updated. The sending module 330 is configured to return the update status and the cache key to the client. Additionally, the apparatus 300 includes an update module configured to update the data related to the Velocity block instruction in the cache by updating the cache with the data related to the Velocity block instruction of the database if the data related to the Velocity block instruction is checked in the cache before returning the update status and the cache key to the client.
The apparatus 300 corresponds to the method 100. The above detailed description and explanation of the method 100 are equally applicable to the apparatus 300 and will not be repeated here.
Fig. 4 exemplarily shows a schematic diagram of a local caching device 400 based on a Velocity block instruction in a client according to an embodiment of the present invention. The apparatus 400 includes a receiving module 410 and an inspection module 420.
The receiving module 410 is configured to receive the update status and cache key values from the server. The check module 420 is configured to check in the client whether the hypertext markup language HTML script in the Velocity block instruction in the Velocity module changes if the update status is not 0. Furthermore, the apparatus 400 further comprises a rendering module configured to not render the page if the update status is 0.
The apparatus 400 corresponds to the method 200. The above detailed description and explanation of the method 200 are equally applicable to the apparatus 400 and will not be repeated here.
In the technical scheme, in order to solve the problem of fast response of a user request under high concurrency, a local caching method and a local caching device based on a Velocity instruction are adopted to locally cache certain HTML fragment data, so that frequent access to a cache and a database is prevented, and the response time of the user is shortened.
The foregoing detailed description has set forth numerous embodiments of the inspection method and system via the use of schematics, flowcharts, and/or examples. Where such diagrams, flowcharts, and/or examples contain one or more functions and/or operations, it will be understood by those within the art that each function and/or operation within such diagrams, flowcharts, or examples can be implemented, individually and/or collectively, by a wide range of structures, hardware, software, firmware, or virtually any combination thereof. In one embodiment, portions of the subject matter described by embodiments of the invention may be implemented by Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), Digital Signal Processors (DSPs), or other integrated formats. However, those skilled in the art will recognize that some aspects of the embodiments disclosed herein, in whole or in part, can be equivalently implemented in integrated circuits, as one or more computer programs running on one or more computers (e.g., as one or more programs running on one or more computer systems), as one or more programs running on one or more processors (e.g., as one or more programs running on one or more microprocessors), as firmware, or as virtually any combination thereof, and that designing the circuitry and/or writing the code for the software and or firmware would be well within the skill of one of skill in the art in light of this disclosure. In addition, those skilled in the art will appreciate that the mechanisms of the subject matter described herein are capable of being distributed as a program product in a variety of forms, and that an illustrative embodiment of the subject matter described herein applies regardless of the particular type of signal bearing media used to actually carry out the distribution. Examples of signal bearing media include, but are not limited to: recordable type media such as floppy disks, hard disk drives, Compact Disks (CDs), Digital Versatile Disks (DVDs), digital tape, computer memory, etc.; and a transmission type medium such as a digital and/or an analog communication medium (e.g., a fiber optic cable, a waveguide, a wired communications link, a wireless communication link, etc.).
While the present invention has been described with reference to several exemplary embodiments, it is understood that the terminology used is intended to be in the nature of words of description and illustration, rather than of limitation. As the present invention may be embodied in several forms without departing from the spirit or essential characteristics thereof, it should also be understood that the above-described embodiments are not limited by any of the details of the foregoing description, but rather should be construed broadly within its spirit and scope as defined in the appended claims, and therefore all changes and modifications that fall within the meets and bounds of the claims, or equivalences of such meets and bounds are therefore intended to be embraced by the appended claims.

Claims (18)

1. A local caching method based on a Velocity block instruction in a server comprises the following steps:
receiving a request sent by a client for accessing a hypertext markup language (HTML) page with a Velocity block instruction, wherein the Velocity block instruction corresponds to a cache region;
checking whether data related to a Velocity block instruction requested by a client is updated in a cache; and
and returning an update state and a cache key value to a client, so that the client checks whether a hypertext markup language (HTML) script in a vector block instruction is changed in the client when the update state is not 0 to determine whether a rendering operation is to be executed by using the cache key value, wherein the cache key value indicates data related to the vector block instruction and stored in the cache.
2. The method of claim 1, wherein,
when the cache does not have data related to the Velocity block instruction and the database does not have data related to the Velocity block instruction, the returned update state is 0;
when the cache does not have data related to the Velocity block instruction but the database has data related to the Velocity block instruction, the returned update state is 1;
when the cache has data related to the Velocity block instruction but the database does not have the data related to the Velocity block instruction, the returned update state is 0;
when the cache has data related to the Velocity block instruction and the database also has data related to the Velocity block instruction but the data related to the Velocity block instruction are inconsistent, the returned update state is 1; and
when there is data in the cache related to the Velocity block instruction and there is also data in the database related to the Velocity block instruction and the data related to the Velocity block instruction are consistent, the returned update status is-1.
3. The method of claim 2, prior to returning the update status and the cache key to the client, the method further comprising:
if the cache is checked for data updates associated with the Velocity block instruction, the data associated with the Velocity block instruction in the cache is updated by updating the cache with the data of the database associated with the Velocity block instruction.
4. A local caching method based on a Velocity block instruction in a client side comprises the following steps:
receiving an update state and cache key values from a server; and
if the update state is not 0, checking whether a hypertext markup language (HTML) script in a Velocity block instruction in a Velocity module is changed in the client to determine whether a rendering operation is to be performed by using the cache key value, wherein the Velocity block instruction corresponds to a cache region, and the cache key value indicates data related to the Velocity block instruction and stored in the cache.
5. The method of claim 4, further comprising:
if the update status is 0, no page rendering is performed.
6. The method of claim 4, wherein checking in the client whether the HTML script in the Velocity block instruction in the Velocity module changes comprises:
acquiring the content of the current HTML script through a node object in the Velocity block instruction; and
the content of the script previously saved in the cache is retrieved and compared with the content of the current HTML script.
7. The method of claim 6, further comprising:
when the comparison result is consistent, judging whether the data related to the Velocity block instruction is updated or not through the returned update state;
if the data related to the Velocity block instruction is not updated, the data related to the Velocity block instruction stored in the cache is obtained through the cache key value, and the data related to the Velocity block instruction is rendered on a page.
8. The method of claim 7, further comprising:
if the data related to the Velocity block instruction is updated, executing the script in the block instruction, rendering the executed result as the data related to the Velocity block instruction to a page, and writing the data related to the Velocity block instruction into a cache through the returned cache key value.
9. The method of claim 6, further comprising:
and when the comparison result is inconsistent, storing the content of the current HTML script in a cache, executing the script in the block instruction, rendering the executed result as data related to the Velocity block instruction to a page, and writing the data related to the Velocity block instruction into the cache through a returned cache key value.
10. A local caching apparatus in a server based on a Velocity block instruction, comprising:
the system comprises a receiving module, a cache module and a processing module, wherein the receiving module is configured to receive a request sent by a client to access a hypertext markup language (HTML) page with a Velocity block instruction, and the Velocity block instruction corresponds to a cache region;
the checking module is configured to check whether data related to the Velocity block instruction requested by the client is updated in the cache; and
a sending module configured to return an update state and a cache key value to a client, so that the client checks whether a hypertext markup language (HTML) script in a Velocity block instruction changes in the client when the update state is not 0, to determine whether to perform a rendering operation by using the cache key value, wherein the cache key value indicates data related to the Velocity block instruction stored in the cache.
11. The apparatus of claim 10, wherein,
when the cache does not have data related to the Velocity block instruction and the database does not have data related to the Velocity block instruction, the returned update state is 0;
when the cache does not have data related to the Velocity block instruction but the database has data related to the Velocity block instruction, the returned update state is 1;
when the cache has data related to the Velocity block instruction but the database does not have the data related to the Velocity block instruction, the returned update state is 0;
when the cache has data related to the Velocity block instruction and the database also has data related to the Velocity block instruction but the data related to the Velocity block instruction are inconsistent, the returned update state is 1; and
when there is data in the cache related to the Velocity block instruction and there is also data in the database related to the Velocity block instruction and the data related to the Velocity block instruction are consistent, the returned update status is-1.
12. The apparatus of claim 11, further comprising:
an update module configured to update the data related to the Velocity block instruction in the cache by updating the cache with the data of the database related to the Velocity block instruction if the data related to the Velocity block instruction is checked in the cache before returning the update status and the cache key to the client.
13. A local caching apparatus based on a Velocity block instruction in a client, comprising:
the receiving module is configured to receive the update state and the cache key value from the server; and
a checking module configured to check, in the client, if the update status is not 0, whether a hypertext markup language (HTML) script in a Velocity block instruction in a Velocity module is changed to determine whether to perform a rendering operation using the cache key value, wherein the Velocity block instruction corresponds to a cache region, and the cache key value indicates data related to the Velocity block instruction held in the cache.
14. The apparatus of claim 13, further comprising:
and the rendering module is configured to not perform page rendering if the update state is 0.
15. The apparatus of claim 13, wherein the checking module is further configured to:
acquiring the content of the current HTML script through a node object in the Velocity block instruction; and
the content of the script previously saved in the cache is retrieved and compared with the content of the current HTML script.
16. The apparatus of claim 15, wherein the checking module is further configured to:
when the comparison result is consistent, judging whether the data related to the Velocity block instruction is updated or not through the returned update state;
if the data related to the Velocity block instruction is not updated, the data related to the Velocity block instruction stored in the cache is obtained through the cache key value, and the data related to the Velocity block instruction is rendered on a page.
17. The apparatus of claim 16, wherein the checking module is further configured to:
if the data related to the Velocity block instruction is updated, executing the script in the block instruction, rendering the executed result as the data related to the Velocity block instruction to a page, and writing the data related to the Velocity block instruction into a cache through the returned cache key value.
18. The apparatus of claim 15, wherein the checking module is further configured to:
and when the comparison result is inconsistent, storing the content of the current HTML script in a cache, executing the script in the block instruction, rendering the executed result as data related to the Velocity block instruction to a page, and writing the data related to the Velocity block instruction into the cache through a returned cache key value.
CN201610288635.5A 2016-05-04 2016-05-04 Local caching method and device based on Velocity block instruction Active CN107346305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610288635.5A CN107346305B (en) 2016-05-04 2016-05-04 Local caching method and device based on Velocity block instruction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610288635.5A CN107346305B (en) 2016-05-04 2016-05-04 Local caching method and device based on Velocity block instruction

Publications (2)

Publication Number Publication Date
CN107346305A CN107346305A (en) 2017-11-14
CN107346305B true CN107346305B (en) 2021-01-26

Family

ID=60252934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610288635.5A Active CN107346305B (en) 2016-05-04 2016-05-04 Local caching method and device based on Velocity block instruction

Country Status (1)

Country Link
CN (1) CN107346305B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477661A (en) * 2009-01-19 2009-07-08 阿里巴巴集团控股有限公司 Digital certificate management method, apparatus and system
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777931B (en) * 2012-10-22 2017-05-10 北大方正集团有限公司 Dynamic page generation method and system with loose relation to business logic
CN103338236B (en) * 2013-06-06 2016-03-30 合一网络技术(北京)有限公司 A kind of concurrent data acquisition methods and system
CN104735112B (en) * 2013-12-23 2018-08-03 阿里巴巴集团控股有限公司 Send method, the method and apparatus of cache resource file of resource file

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477661A (en) * 2009-01-19 2009-07-08 阿里巴巴集团控股有限公司 Digital certificate management method, apparatus and system
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage

Also Published As

Publication number Publication date
CN107346305A (en) 2017-11-14

Similar Documents

Publication Publication Date Title
US11625501B2 (en) Masking sensitive information in records of filtered accesses to unstructured data
US9426200B2 (en) Updating dynamic content in cached resources
US9330191B2 (en) Identifying changes for online documents
CN102982082B (en) The intelligent cache adjusted for safety
US9342617B1 (en) Unique identifiers for browsers
US20120110437A1 (en) Style and layout caching of web content
US8126859B2 (en) Updating a local version of a file based on a rule
EP2803000B1 (en) Custom browser-side spreadsheet functions
US10650032B1 (en) Filtering pipeline optimizations for unstructured data
US10678784B2 (en) Dynamic column synopsis for analytical databases
US11113195B2 (en) Method, device and computer program product for cache-based index mapping and data access
US10664508B1 (en) Server-side filtering of unstructured data items at object storage services
CN110191168A (en) Processing method, device, computer equipment and the storage medium of online business datum
CN112612546A (en) Page loading method and device, electronic equipment and storage medium
CN112580315A (en) Webpage table display method and device, terminal equipment and medium
US20070192324A1 (en) Method and device for advanced cache management in a user agent
CN111107133A (en) Generation method of difference packet, data updating method, device and storage medium
US9043371B1 (en) Storing information in a trusted environment for use in processing data triggers in an untrusted environment
CN103544271A (en) Picture processing window loading method and device for browsers
CN107346305B (en) Local caching method and device based on Velocity block instruction
WO2020006523A1 (en) Mechanism for web crawling e-commerce resource pages
CN113986921A (en) Blacklist query method, system, electronic equipment and storage medium
US11151330B2 (en) Dynamic management of relative time references in documents
CN108629003B (en) Content loading method and device
US10884646B2 (en) Data management system for storage tiers

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
GR01 Patent grant
GR01 Patent grant