CN100591078C - A website buffering method and device - Google Patents

A website buffering method and device Download PDF

Info

Publication number
CN100591078C
CN100591078C CN200710175325A CN200710175325A CN100591078C CN 100591078 C CN100591078 C CN 100591078C CN 200710175325 A CN200710175325 A CN 200710175325A CN 200710175325 A CN200710175325 A CN 200710175325A CN 100591078 C CN100591078 C CN 100591078C
Authority
CN
China
Prior art keywords
source data
information
data
cache
identification information
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
CN200710175325A
Other languages
Chinese (zh)
Other versions
CN101127783A (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 Kingsoft Office Software Inc
Original Assignee
Beijing Kingsoft Software Co Ltd
Beijing Jinshan Digital Entertainment 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 Kingsoft Software Co Ltd, Beijing Jinshan Digital Entertainment Technology Co Ltd filed Critical Beijing Kingsoft Software Co Ltd
Priority to CN200710175325A priority Critical patent/CN100591078C/en
Publication of CN101127783A publication Critical patent/CN101127783A/en
Application granted granted Critical
Publication of CN100591078C publication Critical patent/CN100591078C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The utility model discloses a caching method for websites, comprising that the following steps: recording the identification information of the source data and the finally updating time information tothe cache information table; receiving the committed access request and forming request message carrying the identification information of the source data; judging that whether the caching data of the source data exists in local cache; if the caching data not existing, extracting the source data, the identification information of the source data and the finally updating time information and forming the caching data of the source data at the local cache; if the caching data existing, comparing the finally updating time information of the caching data with the finally updating time informationof the corresponding identification information in the caching information table; if consistent, reading out the caching data; while if not consistent, regenerating the caching data of the source datain the local cache. The utility model ensures the promptness of the cache effectively, avoids resource waste and improves the caching efficiency.

Description

The device of a kind of website caching method and a kind of website buffer memory
Technical field
The present invention relates to the data cached process field in website, the device of the method for particularly a kind of website buffer memory and a kind of website buffer memory.
Background technology
As everyone knows, the process of access websites is to finish by the http protocol that is based upon on the ICP/IP protocol.Send a HTTP request from client, the stand-by period that the user experienced depends mainly on the response time of DNS and website.The website domain name at first must be resolved to the IP address by dns server, and the time-delay of HTTP is then by being determined several two-way time between client and server.
Particularly, be meant each request responding time of client awaits two-way time, average round-trip time is depended on three aspects:
1, the time-delay of Website server:
The time-delay that Website server causes accounts for main ratio in two-way time.When certain server receives that a plurality of concurrent HTTP ask, will produce queuing delay.Because HTTP of response request often needs repeatedly to visit local hard drive, so even a load and little server also may produce tens or the time-delay of hundreds of microsecond.
2, the time-delay of introducing by router, gateway, acting server and fire compartment wall:
Usually on the path between the client and server, can there be a plurality of network equipments, as router, gateway, agency and fire compartment wall etc.They all will do the operation of storage/forwarding to the IP bag of process, so can introduce queuing delay and handle time-delay.When network congestion, these equipment even can packet loss can be placed hope on client and server this moment and recover communication by agreement end to end.
3, the data transmission bauds on the different communication link:
In wide area network, the data transmission bauds from a network equipment to another LA Management Room is the decision key factor of two-way time.
In order to improve web site performance, the pressure that alleviates the frequent access data and bring to database, thereby introduced the website caching technology, development along with caching technology, using more caching technology at present is the dynamic buffering technology, particularly, this dynamic buffering technology is after the source data issue of fresh content, do not generate in advance data cached accordingly (as, static page), and when corresponding source data being sent request, if the foreground caching server can not find data cached accordingly, just send request to the backstage content management server, background system can generate the data cached of corresponding contents, and promptly the user for the first time generates data cached at background system during accession page; And when upgrading, be, for example, 24 hours, upgrade according to the default time of current client computer.The defective of this existing caching technology is, because it is just data cached in the backstage generation when corresponding contents being sent request, thereby can not obtain the generation or the update mode of source data immediately, thereby can not guarantee data cached instantaneity; And, adopt in this technology, no matter whether source data is upgraded, then initiate to upgrade as long as meet the arrival Preset Time, thereby waste serious resource, influence buffer update efficient; In addition, a plurality of client computer of using this prior art are independent buffer memorys, and the data cached of each client computer may be inconsistent.
Therefore, those skilled in the art press for develops a kind of under the prerequisite that guarantees the buffer memory instantaneity, effectively improves the website buffer efficiency, and can guarantee the website caching method and the device of the caching data consistency of each client computer.
Summary of the invention
Technical problem to be solved by this invention provides the method for a kind of website buffer memory, and in order to solve in the prior art, the buffer memory instantaneity is poor, data cached inconsistent, the serious waste of resources of each client computer, the low problem of buffer efficiency.
The present invention also provides a kind of network-caching device, in order to guarantee said method realization and application in practice.
For solving the problems of the technologies described above, the embodiment of the invention discloses the method for a kind of website buffer memory, comprising:
The identification information of record source data and final updating temporal information are to cache information table; Wherein, for newly-generated source data, the final updating temporal information that is write down is the temporal information that described source data generates, and for the renewal that described source data is carried out, the final updating temporal information that is write down is the last temporal information of upgrading of this source data;
Receive the access request of submitting to, generate solicited message, described request information comprises the identification information of institute's access originator data;
According to whether having the data cached of described source data in the described identification information judgment local cache;
If there is no, then extract the final updating temporal information that writes down in the identification information of described source data, described source data and the described cache information table, in local cache, generate the data cached of described source data;
If exist, the final updating temporal information of respective identification information compares in then will be described data cached final updating temporal information and the described cache information table, as if unanimity, then reads described data cached; If inconsistent, then extract the final updating temporal information that writes down in the identification information of described source data, described source data and the described cache information table, in local cache, regenerate the data cached of described source data.
Preferably, described recording step comprises:
Generate source data and identification information thereof, described identification information recording to cache information table, is recorded to the rise time information of described source data in the cache information table as the final updating temporal information;
Upgrade source data, according to current update time information revise the final updating temporal information of the identification information correspondence of this source data in the described cache information table.
Preferably, described source data is stored in first server, and described cache information table is stored in the second server.
Preferably, described cache information table is a Hash table.
Preferably, described cache information table is a plurality of.
The embodiment of the invention also discloses the device of a kind of website buffer memory, comprising:
Record cell is used for writing down the identification information of source data and final updating temporal information to cache information table; Wherein, for newly-generated source data, the final updating temporal information that is write down is the temporal information that described source data generates, and for the renewal that described source data is carried out, the final updating temporal information that is write down is the last temporal information of upgrading of this source data;
Interface unit is used for the access request that subscribing client is submitted to, generates solicited message, and described request information comprises the identification information of institute's access originator data;
Judging unit is used for whether having the data cached of described source data according to described identification information judgment local cache, if there is no, then triggers the buffer memory creating unit; If exist, then trigger the contrast unit;
The buffer memory creating unit is used for extracting the identification information of described source data, described source data and the final updating temporal information that described cache information table writes down, and generates the data cached of described source data in local cache;
The contrast unit, be used for the described data cached final updating temporal information and the final updating temporal information of described cache information table respective identification information are compared, and when unanimity, trigger reading unit, when inconsistent, call the buffer memory creating unit and in local cache, regenerate the data cached of described source data;
Reading unit is used to read described data cached.
Preferably, described record cell further comprises:
Generate the record subelement, be used to generate source data and identification information thereof, described identification information recording to cache information table, is recorded to the rise time information of described source data in the cache information table as the final updating temporal information;
More the new record subelement is used to upgrade source data, according to current update time information revise the final updating temporal information of the identification information correspondence of this source data in the described cache information table.
Preferably, described device also comprises:
Memory cell is used to store described source data.
Preferably, described memory cell is positioned at first server end, described record cell second server end.
Preferably, described cache information table is a Hash table.
Compared with prior art, the embodiment of the invention has the following advantages:
At first, because the present invention is by comparing the final updating temporal information in data cached in record final updating temporal information of source data and the buffer memory in the cache information table, and the final updating temporal information in data cached is the temporal information at buffer update last time, as seen its contrast factor does not rely on the contrast of current system time, thereby no matter on any client computer, generate data cached, its time information is all taken from the set time information element in the cache information table, thereby can guarantee that data cached on each client computer is consistent;
And, the buffer update operation can be initiated as long as comparing result is inconsistent, thereby the instantaneity of buffer memory can be effectively guaranteed, and data cached real-time;
Moreover, because the present invention judges whether buffer memory needs the request of upgrading, only need to judge that according to the corresponding temporal information of identification information system resources consumption is very little, thereby has effectively improved the efficient of buffer memory;
At last, the present invention is by the data cached final updating temporal information of contrast cache information table and respective identification, and only under the inconsistent situation of comparing result, just initiate to upgrade, as long as unanimity is then represented source data and is not upgraded, thereby need not to initiate the renewal of buffer memory, further avoid the wasting of resources, improved buffer efficiency.
Description of drawings
Fig. 1 is the flow chart of the method embodiment of a kind of website of the present invention buffer memory;
Fig. 2 is the organigram of a Hash table;
Fig. 3 is the structured flowchart of the device embodiment of a kind of website of the present invention buffer memory;
Fig. 4 uses the flow chart that preferred embodiment embodiment of the present invention carries out the website buffer memory.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
One of core idea of the embodiment of the invention is, preset cache information table, the identification information and the final updating temporal information of record source data in the described cache information table, in practice, the rise time information of record source data is the final updating temporal information when generating source data, when upgrading described source data, with current update time information be designated as the final updating temporal information of described source data, when the user's access originator data first time, in local cache, generate the data cached of described source data, described data cached this source data and identification information and the final updating temporal information of comprising; When the user visits again described source data later on, earlier with the final updating temporal information contrast of writing down in final updating temporal information data cached described in the local cache and the cache information table, in case source data was once initiated renewal, for example, by the user edit, modification etc., the final updating temporal information of this source data can be changed in the then described cache information table, thereby in this case, comparing result is inconsistent, at this moment, then initiate data cached renewal to source data described in the local cache; If source data is not updated, the final updating temporal information of this source data can not change in the then described cache information table, at this moment, is consistent with the final updating temporal information in the described cache information table with data cached temporal information, in this case, then do not need to initiate renewal, and directly read this data cached getting final product data cached.
With reference to figure 1, show the flow chart of the method embodiment of a kind of website of the present invention buffer memory, specifically can may further comprise the steps:
The identification information of step 101, record source data and final updating temporal information are to cache information table;
Preferably, in the present embodiment, described recording step can comprise following substep:
Substep S1, generate source data and identification information thereof, described identification information recording to cache information table, is recorded to the rise time information of described source data in the cache information table as the final updating temporal information;
Substep S2, upgrade source data, according to current update time information revise the final updating temporal information of the identification information correspondence of this source data in the described cache information table.
Promptly in practice, for newly-generated source data, the final updating temporal information that is write down is the temporal information that described source data generates; For the renewal that described source data is carried out, the final updating temporal information that is write down is the last temporal information of upgrading of this source data.
The access request that step 102, reception are submitted to generates solicited message;
Wherein, described request information comprises the identification information of institute's access originator data;
Step 103, according to whether having the data cached of described source data in the described identification information judgment local cache, if there is no, then execution in step 104; If exist, then execution in step 105;
The final updating temporal information that writes down in step 104, the identification information that extracts described source data, described source data and the described cache information table generates the data cached of described source data in local cache;
Step 105, the final updating temporal information of respective identification information in described data cached final updating temporal information and the described cache information table is compared, if consistent, then execution in step 106; If inconsistent, then execution in step 104 regenerates the data cached of described source data in local cache;
Step 106, read described data cached.
The web of website using system is alternately usually based on C/S (Client/Server, client/server), or B/S (Browser/Server, browser/server) pattern, in C/S model, client directly links to each other with server, client is submitted to server with user's requirement, and server receives the service request that CLIENT PROGRAM proposes, and handles accordingly, again the result is returned to client, the result that client is returned server again is shown to the user with particular form; In the B/S pattern, the client operate browser software, browser proposes the requirement of accessing database to Web server with the hypertext form, after Web server is accepted client-requested, this request is converted into the SQL grammer, and give database server, after database server obtains request, verify its legitimacy, the line data of going forward side by side is handled, and the result after will handling then returns to Web server, and all results that Web server will obtain again transform, become the html document form, be transmitted to client browser and show with close friend's Web page format.The user carries out data alternately by client or browser and Web server and submits to, can trigger Web server and generate corresponding source data or corresponding source data is upgraded.
In practice, the user is by the access request of client computer submission at certain source data, the identification information that then can comprise this source data in the described access request, if the user visits this source data for the first time on current client computer, what can expect so is, be the data cached of not this source data in the buffer memory of current client computer, thereby need in the local cache of current client computer, generate data cached.For organizing data structurally, in the present embodiment, preferably, described source data is stored in first server, and described cache information table is stored in the second server.In this case, then in first server, extract the source data of respective identification information correspondence, in second server, extract simultaneously the final updating time of the source data of respective identification information correspondence, generate the data cached of the content, identification information and the final updating temporal information that comprise this source data then.
For managing and use described cache information table better, preferably, described cache information table is a Hash table.Under the bigger situation of data volume, a plurality of cache information table can also be set, for example, a Hash table is set at the source data in the certain limit.To make things convenient for searching of data.Be well known that, Hash table is according to the hash function H (key) that sets and handles the method for conflicting a set of keyword is videoed on the limited continuous address set, and with keyword in address set (interval) " as " as the memory location that is recorded in the table, in the present embodiment, the method to described structure Hash table does not limit.
For example, a kind of Hash table of structure as shown in Figure 2, wherein, described Tid is an identification information, described Cachetime is the final updating temporal information, hash algorithm relies on shown in following code:
Function createhash(string$tid){
$md5string=md5($tid);
Return substr($md5str,0,2);
}
As can be seen, in this example,, data are evenly distributed, and can split, reduce by two data magnitudes, make two data magnitudes of improved efficiency, thereby improve the response speed of server by data according to the hash computing.
For making those skilled in the art understand present embodiment better, below the process of visiting for the first time with the user who uses present embodiment be that example describes.
Example 1 is supposed party A-subscriber's Website login on the A client computer, and delivers one piece of article on the website, and content (being source data) is for " being familiar with you is very glad! ", its identification information Tid is 1, according to current time 2007091815:49:00, the timestamp of conversion rise time information is Cachetime:1190130540, then generates cache information table and is:
tid cachetime
1 1190130540
Suppose that the party B-subscriber visits this article for the first time on the B client computer, the URL address of supposing this article is http://hostname/1.php, wherein, whether 1 is the identification information tid of this article, in this case, at first exist data cached accordingly in the local cache according to the condition judgment B client computer of tid:1, owing to be visit for the first time, so judged result is not for having, in this case, then from Website server, extract this identification information and be 1 article " being familiar with you is very glad! ", simultaneously in cache information table be that 1 final updating temporal information Cachetime:1190130540 extracts with this identification information, in the B client computer, generate data cached, shape as:
<xml>
<tid>1</tid>
<cachetime>1190130540</cachetime>
<content〉be familiar with you and be very glad!</content 〉
</xml>
If the user is not the access originator data first time, then the final updating temporal information with respective identification information in the data cached final updating temporal information of respective identification information in the buffer memory and the cache information table compares, it should be noted that, final updating temporal information in the cache information table is to upgrade according to the renewal of source data, that is to say, if source data has been upgraded, when upgrading its content, promptly trigger the renewal of its final updating temporal information, promptly replace existing final updating temporal information with the temporal information of current more new data.In this case, then the possibility of result of described contrast is consistent, may be for inconsistent, if consistent, show that then this source data do not carry out renewal, and therefore directly read this data cached the getting final product in the local cache; If it is inconsistent, show that then this source data upgrades, thereby the respective cache data in the local cache also should be upgraded, in this case, can extract content, identification information and the final updating temporal information of the source data of this final updating, in local cache, regenerate the data cached of this source data.
Following according to above-mentioned example 1 by instantiation for this non-first the visit situation describe.
Example 2 supposes that the party A-subscriber delivering above-mentioned article after 5 seconds, has edited this article again on the A client computer, and the content behind the editor is for " being familiar with you is very glad! Give us your advice later on! ", at this moment,,, also needing the final updating temporal information of respective sources data in the cache information table is upgraded along with the renewal of feed data content according to stabbing to Cachetime:1190130545 change-over time current time, the cache information table after the renewal is:
tid cachetime
1 1190130545
At this moment, suppose that the party B-subscriber has refreshed this article on the B client computer, the URL address of this article still is http://hostname/1.php, and wherein, 1 is identification information tid, calls data cached 1.xml, and the data cached of acquisition is:
<xml>
<tid>1</tid>
<cachetime>1190130540</cachetime>
<content〉be familiar with you and be very glad!</content 〉
</xml>
Obtaining this data cached final updating temporal information is 1190130540, cachetime in itself and the cache information table is compared, can obtain comparing result is: 1190130545>1190130540, and comparing result is inconsistent, thereby initiates data cached renewal:
" be familiar with you is very glad source data after extraction is upgraded! Give us your advice later on! ", the final updating temporal information cachetime:1190130545 that writes down in identification information 1 and the cache information table, regenerate and data cachedly be:
<xml>
<tid>1</tid>
<cachetime>1190130545</cachetime>
<content〉be familiar with you and be very glad! Give us your advice later on!</content 〉
</xml>
Suppose after 5 minutes in, do not have the user that this model is upgraded, refresh or access request again if user B continues on the B client computer this model submitted to, call and data cachedly still be accordingly in the buffer memory:
<xml>
<tid>1</tid>
<cachetime>1190130545</cachetime>
<content〉be familiar with you and be very glad! Give us your advice later on!</content 〉
</xml>
Obtaining this data cached final updating temporal information is 1190130545, cachetime in itself and the cache information table is compared, can obtain comparing result is: 1190130545=1190130545, and the comparing result unanimity, this is data cached thereby directly read.
As can be seen, the present invention is by comparing the final updating temporal information in data cached in record final updating temporal information of source data and the buffer memory in the cache information table, and the final updating temporal information in data cached is the temporal information at buffer update last time, as seen its contrast factor does not rely on the contrast of current system time, thereby no matter on any client computer, generate data cached, its time information is all taken from the set time information element in the cache information table, thereby can guarantee that data cached on each client computer is consistent; And, the buffer update operation can be initiated as long as comparing result is inconsistent, thereby the instantaneity of buffer memory can be effectively guaranteed, and data cached real-time; Moreover, because the present invention judges whether buffer memory needs the request of upgrading, only need to judge that according to the corresponding temporal information of identification information system resources consumption is very little, thereby has effectively improved the efficient of buffer memory; At last, the present invention is by the data cached final updating temporal information of contrast cache information table and respective identification, and only under the inconsistent situation of comparing result, just initiate to upgrade, as long as unanimity is then represented source data and is not upgraded, thereby need not to initiate the renewal of buffer memory, further avoid the wasting of resources, improved buffer efficiency.
With reference to figure 3, show the structured flowchart of the device embodiment of a kind of website of the present invention buffer memory, specifically can comprise with lower unit:
Record cell 301 is used for writing down the identification information of source data and final updating temporal information to cache information table;
Interface unit 302 is used for the access request that subscribing client is submitted to, generates solicited message, and described request information comprises the identification information of institute's access originator data;
Judging unit 303 is used for whether having the data cached of described source data according to described identification information judgment local cache, if there is no, then triggers buffer memory creating unit 304; If exist, then trigger contrast unit 305;
Buffer memory creating unit 304 is used for extracting the identification information of described source data, described source data and the final updating temporal information that described cache information table writes down, and generates the data cached of described source data in local cache;
Contrast unit 305, be used for the described data cached final updating temporal information and the final updating temporal information of described cache information table respective identification information are compared, and when unanimity, trigger reading unit 306, when inconsistent, call buffer memory creating unit 304 and in local cache, regenerate the data cached of described source data;
Reading unit 306 is used to read described data cached.
Preferably, in the present embodiment, described record cell further comprises following subelement:
Generate the record subelement, be used to generate source data and identification information thereof, described identification information recording to cache information table, is recorded to the rise time information of described source data in the cache information table as the final updating temporal information;
More the new record subelement is used to upgrade source data, according to current update time information revise the final updating temporal information of the identification information correspondence of this source data in the described cache information table.
Preferably, in the present embodiment, can also comprise memory cell, be used to store described source data.
More preferably, described memory cell is positioned at first server end, described record cell second server end.
More preferably, described cache information table is a Hash table.
With reference to figure 4, show and use the flow chart that preferred embodiment embodiment shown in Figure 3 carries out the website buffer memory, specifically can may further comprise the steps:
The identification information of step 401, recording unit records source data and final updating temporal information are to cache information table;
Preferably, described record cell can be realized its function by following subelement:
Generate the record subelement and generate source data and identification information thereof, described identification information recording to cache information table, is recorded to the rise time information of described source data in the cache information table as the final updating temporal information;
More the new record subelement upgrades source data, according to current update time information revise the final updating temporal information of the identification information correspondence of this source data in the described cache information table.
The access request that step 402, interface unit subscribing client are submitted to generates solicited message;
Wherein, described request information comprises the identification information of institute's access originator data;
Step 403, judging unit if there is no, then trigger buffer memory creating unit execution in step 404 according to whether having the data cached of described source data in the described identification information judgment local cache; If exist, then trigger contrast unit execution in step 405;
Step 404, buffer memory creating unit are extracted the final updating temporal information that writes down in the identification information of described source data, described source data and the described cache information table, generate the data cached of described source data in local cache;
The final updating temporal information of respective identification information compares in final updating temporal information that step 405, contrast unit are will be described data cached and the described cache information table, and when unanimity triggering reading unit execution in step 406; When inconsistent, call buffer memory creating unit execution in step 404;
Step 406, reading unit read described data cached.
For device embodiment, because it is substantially corresponding to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
In practice, can obtain to optimize for making the present invention, the present invention can based on LAMP ( Apache, MySQL and PHP/Perl/Python) the framework realization, promptly comprise (SuSE) Linux OS, the Apache webserver, the MySQL database, PHP, Perl or Python programming language, it is one group of open source software that is commonly used to build dynamic website or clothes server, it itself all is program independently separately, but because often be brought together use, had more and more higher compatibility, formed a powerful web application platform jointly.Application program based on LAMP is to write with the such script of PHP (sometimes replacing with Perl or Python), and they are as the part operation of the Apache Web server that moves on the Linux main frame.The PHP application program by URL, all form datas of request and any session information of having caught from the client computer acquired information, thereby determine carry out what operation.If necessary, server can be from MySQL database (also moving at Linux) acquired information, with these information and some HypertextMarkup Language (HTML) form assemblies together, and the result is returned to client computer.When the user navigated in application program, this process repeated; When a plurality of user capture system, this process can concurrent carrying out.But data flow is not unidirectional, because can be used for information updating database from the user, comprises the content (upgrading such as comment or website) that session data, statistics (comprising ballot) and user submit to.Except dynamic element, also has static elements, such as image, JavaScript code and CSS (CSS).
The present invention can be used for numerous general or special purpose computingasystem environment or configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, comprise distributed computing environment (DCE) of above any system or equipment or the like.In addition, the present invention can also describe in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in distributed computing environment (DCE), put into practice the present invention, in these distributed computing environment (DCE), by by communication network connected teleprocessing equipment execute the task.In distributed computing environment (DCE), program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
More than the method for a kind of website provided by the present invention buffer memory and the device of a kind of website buffer memory are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1, the method for a kind of website buffer memory is characterized in that, comprising:
The identification information of record source data and final updating temporal information are to cache information table, wherein, for newly-generated source data, the final updating temporal information that is write down is the temporal information that described source data generates, for the renewal that described source data is carried out, the final updating temporal information that is write down is the last temporal information of upgrading of this source data;
Receive the access request of submitting to, generate solicited message, described request information comprises the identification information of institute's access originator data;
According to whether having the data cached of described source data in the described identification information judgment local cache;
If there is no, then extract the final updating temporal information that writes down in the identification information of described source data, described source data and the described cache information table, in local cache, generate the data cached of described source data;
If exist, the final updating temporal information of respective identification information compares in then will be described data cached final updating temporal information and the described cache information table, as if unanimity, then reads described data cached; If inconsistent, then extract the final updating temporal information that writes down in the identification information of described source data, described source data and the described cache information table, in local cache, regenerate the data cached of described source data.
2, the method for claim 1 is characterized in that, described recording step comprises:
Generate source data and identification information thereof, described identification information recording to cache information table, is recorded to the rise time information of described source data in the cache information table as the final updating temporal information;
Upgrade source data, according to current update time information revise the final updating temporal information of the identification information correspondence of this source data in the described cache information table.
3, method as claimed in claim 1 or 2 is characterized in that, described source data is stored in first server, and described cache information table is stored in the second server.
4, method as claimed in claim 3 is characterized in that, described cache information table is a Hash table.
5, method as claimed in claim 4 is characterized in that, described cache information table is a plurality of.
6, the device of a kind of website buffer memory is characterized in that, comprising:
Record cell, be used for writing down the identification information of source data and final updating temporal information to cache information table, wherein, for newly-generated source data, the final updating temporal information that is write down is the temporal information that described source data generates, for the renewal that described source data is carried out, the final updating temporal information that is write down is the last temporal information of upgrading of this source data;
Interface unit is used for the access request that subscribing client is submitted to, generates solicited message, and described request information comprises the identification information of institute's access originator data;
Judging unit is used for whether having the data cached of described source data according to described identification information judgment local cache, if there is no, then triggers the buffer memory creating unit; If exist, then trigger the contrast unit;
The buffer memory creating unit is used for extracting the identification information of described source data, described source data and the final updating temporal information that described cache information table writes down, and generates the data cached of described source data in local cache;
The contrast unit, be used for the described data cached final updating temporal information and the final updating temporal information of described cache information table respective identification information are compared, and when unanimity, trigger reading unit, when inconsistent, call the buffer memory creating unit and in local cache, regenerate the data cached of described source data;
Reading unit is used to read described data cached.
7, device as claimed in claim 6 is characterized in that, described record cell further comprises:
Generate the record subelement, be used to generate source data and identification information thereof, described identification information recording to cache information table, is recorded to the rise time information of described source data in the cache information table as the final updating temporal information;
More the new record subelement is used to upgrade source data, according to current update time information revise the final updating temporal information of the identification information correspondence of this source data in the described cache information table.
8, as claim 6 or 7 described devices, it is characterized in that, also comprise:
Memory cell is used to store described source data.
9, device as claimed in claim 8 is characterized in that, described memory cell is positioned at first server end, described record cell second server end.
10, device as claimed in claim 9 is characterized in that, described cache information table is a Hash table.
CN200710175325A 2007-09-28 2007-09-28 A website buffering method and device Active CN100591078C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710175325A CN100591078C (en) 2007-09-28 2007-09-28 A website buffering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710175325A CN100591078C (en) 2007-09-28 2007-09-28 A website buffering method and device

Publications (2)

Publication Number Publication Date
CN101127783A CN101127783A (en) 2008-02-20
CN100591078C true CN100591078C (en) 2010-02-17

Family

ID=39095704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710175325A Active CN100591078C (en) 2007-09-28 2007-09-28 A website buffering method and device

Country Status (1)

Country Link
CN (1) CN100591078C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038121A (en) * 2017-11-03 2018-05-15 福建网龙计算机网络信息技术有限公司 A kind of caching method and terminal

Families Citing this family (46)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025750A (en) * 2009-09-15 2011-04-20 天津七所信息技术有限公司 Network caching proxy service system
CN102065572B (en) * 2009-11-17 2015-07-01 中国移动通信集团广东有限公司 Mobile browser, gateway, browsing system and access method for internet page
CN102109989A (en) * 2009-12-29 2011-06-29 阿里巴巴集团控股有限公司 Method, device and system for controlling browser cache
CN101937467A (en) * 2010-09-17 2011-01-05 北京开心人信息技术有限公司 High-efficiency caching method and system of server
CN102012931A (en) * 2010-12-01 2011-04-13 北京瑞信在线系统技术有限公司 Filter cache method and device, and cache system
CN102216930A (en) * 2010-12-14 2011-10-12 华为技术有限公司 Web request scheduling method and system
CN102831111B (en) * 2011-06-14 2015-12-16 腾讯科技(深圳)有限公司 A kind of image display method and device
CN102916993B (en) * 2011-08-03 2016-06-15 腾讯科技(深圳)有限公司 A kind of network hard disc data-updating method and device
CN102508854A (en) * 2011-09-29 2012-06-20 畅捷通信息技术股份有限公司 Data access device and method
CN103095765B (en) * 2011-11-03 2015-06-17 陈璧超 Peer-to-peer communication network and data content distributing method thereof and communication node thereof
CN103139279B (en) * 2011-12-05 2016-02-24 阿里巴巴集团控股有限公司 file access method and system
CN103294718A (en) * 2012-02-29 2013-09-11 腾讯科技(深圳)有限公司 Method and device for web page cache management
CN102662993A (en) * 2012-03-14 2012-09-12 北京神州数码思特奇信息技术股份有限公司 A method for providing page data
CN103428171B (en) * 2012-05-17 2016-08-24 阿里巴巴集团控股有限公司 The processing method of a kind of session, application server and system
CN102710776B (en) * 2012-06-05 2014-08-20 天津兆民云计算科技有限公司 Method for preventing repeatedly requesting API server in short time
CN102843604B (en) * 2012-09-07 2015-05-06 深圳市九洲电器有限公司 Method and system for efficiently accessing subject gateway
US9712575B2 (en) 2012-09-12 2017-07-18 Flipboard, Inc. Interactions for viewing content in a digital magazine
US9037592B2 (en) 2012-09-12 2015-05-19 Flipboard, Inc. Generating an implied object graph based on user behavior
CN102929943B (en) * 2012-09-28 2016-03-30 五八有限公司 data output method and device
CN103841045B (en) * 2012-11-22 2017-11-21 中国移动通信集团公司 A kind of internet method for caching and processing, content detection subsystem and Cache systems
CN103399911A (en) * 2013-07-30 2013-11-20 北京小米科技有限责任公司 Access processing method, device and terminal device on basis of browser client
CN103763340B (en) * 2013-12-24 2017-07-04 新华三技术有限公司 A kind of apparatus and method of web access optimization
CN103701929A (en) * 2014-01-02 2014-04-02 中安消技术有限公司 Method and device for realizing business data caching
CN110505310B (en) * 2014-07-11 2022-04-15 创新先进技术有限公司 Method, device and system for realizing distributed cache
CN104657401A (en) * 2014-10-21 2015-05-27 北京齐尔布莱特科技有限公司 Web cache updating method
CN104468807B (en) * 2014-12-12 2018-11-13 北京易网无际科技有限公司 Carry out processing method, high in the clouds device, local device and the system of web cache
CN106817381A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 Data processing method and device
CN105868231A (en) * 2015-12-01 2016-08-17 乐视体育文化产业发展(北京)有限公司 Cache data updating method and device
CN107451132A (en) * 2016-05-30 2017-12-08 深圳市唯德科创信息有限公司 A kind of patent information update method and system
CN105897754A (en) * 2016-06-03 2016-08-24 腾讯科技(深圳)有限公司 Data processing system, data pulling method and client
CN107807816A (en) * 2016-09-08 2018-03-16 阿里巴巴集团控股有限公司 The upgrade method of serve end program and database, device and equipment
CN108121730B (en) * 2016-11-30 2021-01-26 北京京东尚科信息技术有限公司 Device and method for quickly synchronizing data update to service system
CN108241636A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 Unstructured data clone method between a kind of multi-user's node
CN108241635A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 Unstructured data retransmission method between a kind of multi-user's node
CN108241637A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 A kind of multi-user's internodal data Transmission system
CN106934057A (en) * 2017-03-22 2017-07-07 福建中金在线信息科技有限公司 A kind of data cached update method of paging and device
CN108540583B (en) * 2018-01-30 2022-02-25 北京三快在线科技有限公司 Domain name issuing method and device in CDN system and electronic equipment
CN108566411A (en) * 2018-02-07 2018-09-21 链家网(北京)科技有限公司 Static resource acquisition methods, electronic equipment and storage medium
CN110287715B (en) * 2019-06-25 2022-04-08 恒宝股份有限公司 Cache data safety management system
CN110795649A (en) * 2019-09-18 2020-02-14 北京你财富计算机科技有限公司 Target page display method, device and system and electronic equipment
CN110807040B (en) * 2019-10-30 2023-03-24 北京达佳互联信息技术有限公司 Method, device, equipment and storage medium for managing data
CN111125580B (en) * 2019-12-09 2023-08-15 北京五八信息技术有限公司 Network resource acquisition method and device, electronic equipment and storage medium
CN112307387A (en) * 2020-10-30 2021-02-02 上海二三四五网络科技有限公司 Control method and control device for dynamic time period information cache
CN112953835B (en) * 2021-01-18 2023-03-14 广州三七互娱科技有限公司 Data transmission method, device and system
CN112860698B (en) * 2021-02-19 2024-07-02 北京金山云网络技术有限公司 Form processing method, form processing device, electronic equipment and computer readable storage medium
CN113542109B (en) * 2021-07-19 2022-06-07 江西省能源大数据有限公司 Data acquisition method of 5G intelligent energy gateway

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
为应用服务器添加Web层静态文件缓存功能. 周小波,宋普选,曹元大.计算机工程与应用,第32期. 2005
为应用服务器添加Web层静态文件缓存功能. 周小波,宋普选,曹元大.计算机工程与应用,第32期. 2005 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038121A (en) * 2017-11-03 2018-05-15 福建网龙计算机网络信息技术有限公司 A kind of caching method and terminal
CN108038121B (en) * 2017-11-03 2021-06-08 福建网龙计算机网络信息技术有限公司 Caching method and terminal

Also Published As

Publication number Publication date
CN101127783A (en) 2008-02-20

Similar Documents

Publication Publication Date Title
CN100591078C (en) A website buffering method and device
US11477298B2 (en) Offline client replay and sync
CN103248684B (en) Resource acquiring method and device in a kind of the Internet
CN100438435C (en) Method for limiting browser access network address
CN101364979B (en) Downloaded material parsing and processing system and method
CN107391664A (en) Page data processing method and system based on WEB
CN102457565B (en) The method of mobile terminal network visiting and proxy server
CN104063460A (en) Method and device for loading webpage in browser
CN103699674A (en) Webpage storing method, webpage opening method, webpage storing device, webpage opening device and webpage browsing system
CN107580052B (en) Self-evolution network self-adaptive crawler method and system
CN104601522A (en) Method, device and system for realizing interaction between mobile client and service system
CN105279034B (en) Consistency cache control system and method
CN109086451A (en) A kind of picture storage and retrieval method and apparatus
CN105279156B (en) Network information communication means and network information browsing apparatus
CN103513986A (en) Method for using CGI technology for achieving dynamic web server in no-operation system
US20080177824A1 (en) Method and system for automatic setup in web-based applications
CN109714208A (en) A kind of equipment is included in method, storage medium and the electronic equipment of network management
CN104933045B (en) Network information browsing method and network information browsing apparatus
CN105450771A (en) Information push and information push optimization methods, servers and systems
CN113158118A (en) Page buried point data acquisition method, device and system
CN112035205A (en) Data processing method, device, equipment and storage medium
CN102148702A (en) Method for managing network by utilizing network configuration protocol
CN105512318B (en) Page generation method and device
CN106126663A (en) page aggregation method and device
CN102215146B (en) Webpage downloading monitoring method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: BEIJING KINGSOFT OFFICE SOFTWARE CO., LTD.

Free format text: FORMER OWNER: BEIJING JINSHAN SOFTWARE CO., LTD.

Effective date: 20140312

Free format text: FORMER OWNER: BEIJING JINSHAN DIGITAL ENTERTAINMENT SCIENCE AND TECHNOLOGY CO., LTD.

Effective date: 20140312

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100083 HAIDIAN, BEIJING TO: 100085 HAIDIAN, BEIJING

TR01 Transfer of patent right

Effective date of registration: 20140312

Address after: Kingsoft No. 33 building, 100085 Beijing city Haidian District Xiaoying Road

Patentee after: Beijing Kingsoft WPS Office Co., Ltd.

Address before: 100083, Beijing, Haidian District No. 238 North Fourth Ring Road, No. 20, Bai Yan building

Patentee before: Beijing Jinshan Software Co., Ltd.

Patentee before: Beijing Jinshan Digital Entertainment Science and Technology Co., Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Kingsoft No. 33 building, 100085 Beijing city Haidian District Xiaoying Road

Patentee after: Beijing Kingsoft office software Limited by Share Ltd

Address before: Kingsoft No. 33 building, 100085 Beijing city Haidian District Xiaoying Road

Patentee before: Beijing Kingsoft WPS Office Co., Ltd.