CN105912689A - Website display method, apparatus and system - Google Patents
Website display method, apparatus and system Download PDFInfo
- Publication number
- CN105912689A CN105912689A CN201610246495.5A CN201610246495A CN105912689A CN 105912689 A CN105912689 A CN 105912689A CN 201610246495 A CN201610246495 A CN 201610246495A CN 105912689 A CN105912689 A CN 105912689A
- Authority
- CN
- China
- Prior art keywords
- website
- url
- thread
- data
- website data
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention discloses a website display method, apparatus and system. The method comprises the steps that a first thread receives a first website access request sent by a client, wherein the first website access request contains a uniform resource locator URL of a website and a set update identifier; when determining that the first website access request contains the update identifier, the first thread call a preset script file; the script file searches a database for latest website data corresponding to the URL, and returns the found latest website data to the first thread; and the first thread returns the found latest website data to the client. Therefore according to the method disclosed by the present application, the update identifier is added in the first website access request, and the first thread is informed to call the preset script file, so as to search for the latest website data corresponding to the URL and then return the latest website data to the client, so that it is ensured that website maintenance personnel at a client side can timely see the latest data of the website.
Description
Technical field
The application relates to Internet technical field, more particularly, it relates to a kind of website display methods, dress
Put and system.
Background technology
Along with the development of internet, various websites occur like the mushrooms after rain, to the life of user
Great convenience is brought with work.
In order to the website visiting of faster customer in response end is asked, prior art the most all can arrange website number
According to caching mechanism, also will cache by the website data corresponding for website URL that accesses of historic customer end,
If follow-up when having client again to access identical URL, transfer the website data of correspondence the most in the buffer,
Return to client, thus avoid again going database is transferred website data corresponding to URL, shorten
The stand-by period of client.
And renewal is produced sometimes due to website data, can be periodically to the website cached for this prior art
Data are updated.But, for website maintenance personnel, it is sometimes desirable to understanding website directly perceived is current
Up-to-date data, and when carrying out website visiting according to prior art, the website data of caching is the most just located
Update in needs but also do not arrive the setting renewal time, thus up-to-date website data cannot be represented.
Summary of the invention
In view of this, this application provides a kind of website display methods, Apparatus and system, be used for solving now
There is the problem that technology cannot show fresh web data for website maintenance personnel in time.
To achieve these goals, it is proposed that scheme as follows:
A kind of website display methods, including:
First thread receives the first website visiting request that client sends, described first website visiting request
Comprising the uniform resource position mark URL of website and the more new logo of setting, described more new logo is used for notifying
First thread obtains the up-to-date website data that described URL is corresponding;
First thread determine described first website visiting request in comprise described in more new logo time, call pre-
The script file put, is inquired about corresponding with described URL up-to-date in the database by described script file
Website data, and the up-to-date website data found is returned to first thread;
The up-to-date website data found is returned to described client by first thread.
Preferably, also include:
The up-to-date website data found is replaced net corresponding with described URL in caching by first thread
Stand data.
Preferably, also include:
First thread receives the second website visiting request that client sends, described second website visiting request
Only comprise the URL of website;
First thread determine described second website visiting request in do not comprise described in more new logo time, it is judged that
Whether website data corresponding with described URL in caching lost efficacy;
If so, the website data corresponding with described URL in caching is returned to described client, and by institute
State URL to add in renewal queue, be in the URL updated in queue and carry out website data more for needs
New URL.
Preferably, also include:
Second thread reads URL from described renewal queue, and utilizes the URL of reading and described renewal mark
Know simulation the first website visiting request, the first website visiting request of simulation be sent to described first thread,
So that first thread is called described script file and is searched the up-to-date website number corresponding with the URL of described reading
According to, and the up-to-date website data found is replaced net corresponding with the URL of described reading in caching
Stand data.
Preferably, described first thread judges in caching, whether the website data corresponding with described URL lost efficacy,
Including:
First thread searches the website data corresponding with described URL in the buffer, and described website data marks
Timestamp, described timestamp is had to have recorded the out-of-service time of described website data;
First thread is according to the timestamp of described website data, it is judged that whether described website data reaches described
Out-of-service time;
If so, determine that described website data lost efficacy, if it is not, determine that described website data did not lost efficacy.
A kind of website display device, is applied to first thread, and this device includes:
First web site requests receives unit, for receiving the first website visiting request that client sends, institute
State uniform resource position mark URL and the more new logo of setting, institute that the first website visiting request comprises website
State more new logo and obtain up-to-date website data corresponding to described URL for notifying;
Script file call unit, for comprising described renewal in determining described first website visiting request
During mark, call preset script file, described script file inquire about in the database with described
The up-to-date website data that URL is corresponding, and the up-to-date website data found is returned to script file
Call unit;
Client feedback unit, for returning to described client by the up-to-date website data found.
Preferably, also include:
Caching replacement unit, for replacing the up-to-date website data found in caching with described
The website data that URL is corresponding.
Preferably, also include:
Second website visiting request reception unit, for receiving the second website visiting request that client sends,
Described second website visiting request only comprises the URL of website;
Inefficacy judging unit, marks for not comprising described renewal in determining described second website visiting request
During knowledge, it is judged that whether website data corresponding with described URL in caching lost efficacy;
Described client feedback unit is additionally operable to, when described inefficacy judging unit judged result is for being, and will
Website data corresponding with described URL in caching returns to described client;
Update queue adding device, for when described inefficacy judging unit judged result is for being, by described
URL adds in renewal queue, and being in the URL updated in queue is to need to carry out website data renewal
URL。
Preferably, described inefficacy judging unit includes:
First inefficacy judgment sub-unit, for searching the website data corresponding with described URL in the buffer,
Described website data is marked with timestamp, and described timestamp have recorded the out-of-service time of described website data;
Second inefficacy judgment sub-unit, for the timestamp according to described website data, it is judged that described website
Whether data reach the described out-of-service time;If so, determine that described website data lost efficacy, if it is not, determine institute
State website data not lose efficacy.
A kind of website display system, including first thread, the second thread and script file, wherein:
First thread receives the first website visiting request that client sends, described first website visiting request
Comprising the uniform resource position mark URL of website and the more new logo of setting, described more new logo is used for notifying
First thread obtains the up-to-date website data that described URL is corresponding;
First thread determine described first website visiting request in comprise described in more new logo time, call pre-
The script file put, is inquired about corresponding with described URL up-to-date in the database by described script file
Website data, and the up-to-date website data found is returned to first thread;
The up-to-date website data found is returned to described client by first thread;
The up-to-date website data found is replaced net corresponding with described URL in caching by first thread
Stand data;
First thread is additionally operable to receive the second website visiting request that client sends, and described second website is visited
The request of asking only comprises the URL of website;
First thread determine described second website visiting request in do not comprise described in more new logo time, it is judged that
Whether website data corresponding with described URL in caching lost efficacy;If so, with described URL in caching
Corresponding website data returns to described client, and is added to by described URL in renewal queue;
Second thread reads URL from described renewal queue, and utilizes the URL of reading and described renewal mark
Know simulation the first website visiting request, the first website visiting request of simulation be sent to described first thread,
So that first thread is called described script file and is searched the up-to-date website number corresponding with the URL of described reading
According to, and the up-to-date website data found is replaced net corresponding with the URL of described reading in caching
Stand data.
From above-mentioned technical scheme it can be seen that the embodiment of the present application provide website display methods, first
Thread receives the first website visiting request that client sends, and the request of this first website visiting comprises website
Uniform resource position mark URL and the more new logo of setting, described more new logo is used for notifying that first thread obtains
Taking up-to-date website data corresponding to described URL, first thread is wrapped in determining the first website visiting request
During containing described more new logo, call preset script file, described script file inquire about in database
The up-to-date website data corresponding with URL, and the up-to-date website data found is returned to First Line
Journey, is returned to client by first thread by the up-to-date website data found.From the foregoing, it will be observed that this Shen
Please be by increasing more new logo at the first website visiting in asking, notice first thread calls preset script
File, to search the up-to-date website data corresponding with URL, and then returns to up-to-date website to client
Data, it is ensured that the website maintenance personnel of client-side can see the data that website is up-to-date in time.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below,
Accompanying drawing in description is only embodiments herein, for those of ordinary skill in the art, not
On the premise of paying creative work, it is also possible to obtain other accompanying drawing according to the accompanying drawing provided.
Fig. 1 is a kind of website display methods flow chart disclosed in the embodiment of the present application;
Fig. 2 is another kind of website display methods flow chart disclosed in the embodiment of the present application;
Fig. 3 is the embodiment of the present application another website display methods flow chart disclosed;
Fig. 4 is the embodiment of the present application another website display methods flow chart disclosed;
Fig. 5 is a kind of website display device structure schematic diagram disclosed in the embodiment of the present application.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out
Clearly and completely describe, it is clear that described embodiment is only some embodiments of the present application, and
It is not all, of embodiment.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under creative work premise, broadly fall into the scope of the application protection.
This application provides a kind of website displaying scheme, the program is applied to background server, background service
Device can include some threads, and the application is first with in multiple threads of comprising in server here
Scheme is introduced by the angle of thread, sets this thread as first thread.
Seeing Fig. 1, Fig. 1 is a kind of website display methods flow chart disclosed in the embodiment of the present application.
As it is shown in figure 1, the method includes:
Step S100, first thread receive the first website visiting request that client sends;
Wherein, described first website visiting request comprises the uniform resource position mark URL of website and setting
More new logo.
This URL is the URL that client is to be accessed.
Wherein, more new logo is for notifying that first thread obtains up-to-date website data corresponding to described URL.
Renewal is designated website maintenance personnel identification information set in advance, and it can be a string character or numeral etc..
This more new logo is opaque for general Websites browses user, namely more new logo is not to common net
It is open that station browses user.
Step S110, first thread determine described first website visiting request in comprise described in more new logo
Time, call preset script file;
Specifically, the application develops script file in advance, and this script file is receiving the tune of first thread
With rear, receiving the URL that first thread sends, inquiry is corresponding with described URL the most in the database
New website data, and the up-to-date website data found is returned to first thread.
Wherein, database stores the up-to-date website data corresponding with each URL.
The up-to-date website data that script file is found by step S120, first thread returns to described visitor
Family end.
Specifically, first thread receives the up-to-date website data of script file passback, and by this website number
According to returning to client, in order to client is shown.
The website display methods that the embodiment of the present application provides, first thread receives the first net that client sends
Standing access request, the request of this first website visiting comprises the uniform resource position mark URL of website and setting
More new logo, described more new logo is for notifying that first thread obtains up-to-date website corresponding to described URL
Data, first thread determine first website visiting request in comprise described in more new logo time, call preset
Script file, described script file in database, inquire about the up-to-date website data corresponding with URL,
And the up-to-date website data found is returned to first thread, up-to-date by find by first thread
Website data return to client.From the foregoing, it will be observed that the application is by increasing in asking at the first website visiting
Adding more new logo, notice first thread calls preset script file, corresponding with URL up-to-date to search
Website data, and then return up-to-date website data to client, it is ensured that the website maintenance of client-side
Personnel can see the data that website is up-to-date in time.
Seeing Fig. 2, Fig. 2 is another kind of website display methods flow chart disclosed in the embodiment of the present application.
As in figure 2 it is shown, the method includes:
Step S200, first thread receive the first website visiting request that client sends;
Wherein, described first website visiting request comprises the uniform resource position mark URL of website and setting
More new logo.
This URL is the URL that client is to be accessed.
Wherein, more new logo is for notifying that first thread obtains up-to-date website data corresponding to described URL.
Renewal is designated user's identification information set in advance, and it can be a string character or numeral etc..
Step S210, first thread determine described first website visiting request in comprise described in more new logo
Time, call preset script file;
Specifically, the application develops script file in advance, and this script file is receiving the tune of first thread
With rear, receiving the URL that first thread sends, inquiry is corresponding with described URL the most in the database
New website data, and the up-to-date website data found is returned to first thread.
Wherein, database stores the up-to-date website data corresponding with each URL.
The up-to-date website data that script file is found by step S220, first thread returns to described visitor
Family end;
Specifically, first thread receives the up-to-date website data of script file passback, and by this website number
According to returning to client, in order to client is shown.
The up-to-date website data that script file is found by step S230, first thread replaces in caching
The website data corresponding with described URL.
Specifically, first thread is after the up-to-date website data receiving script file passback, sharp further
Website data corresponding with described URL in caching is replaced, it is achieved in caching with this up-to-date website data
The renewal of website data.
Optionally, the execution sequence of above-mentioned steps S220 and step S230 not considered critical, the two is permissible
Perform, it is also possible to random order successively performs, and Fig. 2 merely illustrates a kind of optional mode simultaneously.
Compared to a upper embodiment, the present embodiment further increases and is utilized up-to-date website by first thread
The process that the website data corresponding with URL in caching is updated by data.
Above-described embodiment describes website maintenance personnel and sends the first website visiting by user end to server
Request, and the response process of the first thread in server, be next further described common viewer
Send the second website visiting by user end to server to ask, and the response of first thread in server
Process.
Seeing Fig. 3, Fig. 3 is the embodiment of the present application another website display methods flow chart disclosed.
As it is shown on figure 3, the method includes:
Step S300, first thread receive the first website visiting request that client sends;
Wherein, described first website visiting request comprises the uniform resource position mark URL of website and setting
More new logo.
Step S310, first thread determine described first website visiting request in comprise described in more new logo
Time, call preset script file;
Specifically, the application develops script file in advance, and this script file is receiving the tune of first thread
With rear, receiving the URL that first thread sends, inquiry is corresponding with described URL the most in the database
New website data, and the up-to-date website data found is returned to first thread.
Wherein, database stores the up-to-date website data corresponding with each URL.
The up-to-date website data that script file is found by step S320, first thread returns to described visitor
Family end;
Specifically, first thread receives the up-to-date website data of script file passback, and by this website number
According to returning to client, in order to client is shown.
The up-to-date website data that script file is found by step S330, first thread replaces in caching
The website data corresponding with described URL;
Step S340, first thread receive the second website visiting request that client sends, described second net
Access request of standing only comprises the URL of website;
Specifically, commonly browsing user due to website and be not aware that more new logo, therefore it passes through client
The the second website visiting request initiated only comprises the URL of website, without comprising more new logo.
Step S350, first thread do not comprise described renewal in determining described second website visiting request and mark
During knowledge, it is judged that whether website data corresponding with described URL in caching lost efficacy;If so, step is performed
S360;
Specifically, first thread judges in the second website visiting request after receiving the second website visiting request
Do not comprise more new logo, then the URL comprised according to the second website visiting request searches correspondence in the buffer
Website data, and the website data found is carried out ageing judgement, if it is determined that website data is
Through losing efficacy, then perform following step, otherwise, directly the website data found can be returned to client
End.
Step S360, will caching in the website data corresponding with described URL return to described client;
Step S370, described URL is added to renewal queue in.
Wherein, being in the URL updated in queue is the URL needing to carry out website data renewal.
Optionally, the execution sequence of above-mentioned steps S360 and step S370 does not limit, and the two can be same
Shi Zhihang, it is also possible to random order successively performs.
When the website data that first thread finds in determining caching had lost efficacy, in order to ensure client
The website data found in caching in time, is returned to client by response.Simultaneously, first thread
Further described URL is added in renewal queue.Being in the URL updated in queue is that needs are carried out
The URL that website data updates.
The application can arrange other thread or first thread in server, to caching in described renewal
Website data corresponding for URL in queue is updated, in order to when subsequent client accesses such URL
Up-to-date website data can be returned to client.
Optionally, during above-mentioned first thread judges caching, whether the website data corresponding with described URL lost efficacy
Process, may include that
First thread searches the website data corresponding with described URL in the buffer, and described website data marks
Timestamp, described timestamp is had to have recorded the out-of-service time of described website data;
First thread is according to the timestamp of described website data, it is judged that whether described website data reaches described
Out-of-service time;
If so, determine that described website data lost efficacy, if it is not, determine that described website data did not lost efficacy.
Wherein, every time from database to caching in store website data time all can be store website number
According to mark timestamp, this timestamp contains website data and is stored in the time of caching, and website data has
The effect time limit.And then time and the website data term of validity of caching it is stored according to the website data in timestamp
Limit, can be calculated the out-of-service time of website data.
Next the present embodiment provides a kind of server to website corresponding for URL with renewal queue in caching
The process that data are updated.
Seeing Fig. 4, Fig. 4 is the embodiment of the present application another website display methods flow chart disclosed.
As shown in Figure 4, the method includes:
Step S400, first thread receive the first website visiting request that client sends;
Wherein, described first website visiting request comprises the uniform resource position mark URL of website and setting
More new logo.
Step S410, first thread determine described first website visiting request in comprise described in more new logo
Time, call preset script file;
Specifically, the application develops script file in advance, and this script file is receiving the tune of first thread
With rear, receiving the URL that first thread sends, inquiry is corresponding with described URL the most in the database
New website data, and the up-to-date website data found is returned to first thread.
Wherein, database stores the up-to-date website data corresponding with each URL.
The up-to-date website data that script file is found by step S420, first thread returns to described visitor
Family end;
Specifically, first thread receives the up-to-date website data of script file passback, and by this website number
According to returning to client, in order to client is shown.
The up-to-date website data that script file is found by step S430, first thread replaces in caching
The website data corresponding with described URL;
Step S440, first thread receive the second website visiting request that client sends, described second net
Access request of standing only comprises the URL of website;
Specifically, commonly browsing user due to website and be not aware that more new logo, therefore it passes through client
The the second website visiting request initiated only comprises the URL of website, without comprising more new logo.
Step S450, first thread do not comprise described renewal in determining described second website visiting request and mark
During knowledge, it is judged that whether website data corresponding with described URL in caching lost efficacy;If so, step is performed
S460;
Specifically, first thread judges in the second website visiting request after receiving the second website visiting request
Do not comprise more new logo, then the URL comprised according to the second website visiting request searches correspondence in the buffer
Website data, and the website data found is carried out ageing judgement, if it is determined that website data is
Through losing efficacy, then perform following step, otherwise, directly the website data found can be returned to client
End.
Step S460, will caching in the website data corresponding with described URL return to described client;
Step S470, described URL is added to renewal queue in;
Step S480, the second thread read URL from described renewal queue, and utilize the URL of reading
The first website visiting request is simulated with described more new logo;
Specifically, the second thread reads URL one by one from updating queue, and utilizes the URL and more of reading
New logo simulation generates the first website visiting request, and the first website visiting request comprises the URL and more of reading
New logo.
First website visiting request of simulation is sent to described first thread by step S490, the second thread.
Specifically, the second thread passes through the first website visiting request of simulation is sent to first thread, with
Just first thread is called described script file and is searched the up-to-date website number corresponding with the URL of described reading
According to, and the up-to-date website data found is replaced net corresponding with the URL of described reading in caching
Stand data.
In the present embodiment, utilize the second thread in server to read URL from renewal queue, and utilize
The URL read and the simulation of more new logo generate the first website visiting request, send it to first thread,
And then by first thread according to setting logical process.
The multiplexing process logic of first thread in the application, it is not necessary to be the second thread develops website again
Data more fresh code, saves and exploits natural resources.
The website display device provided the embodiment of the present application below is described, and website described below shows
Showing device can be mutually to should refer to above-described website display methods.
The website display device applications that the application provides is in above-mentioned first thread, and seeing Fig. 5, Fig. 5 is this
A kind of website display device structure schematic diagram disclosed in application embodiment.
As it is shown in figure 5, this device includes:
First web site requests receives unit 51, for receiving the first website visiting request that client sends,
Described first website visiting request comprises the uniform resource position mark URL of website and the more new logo of setting,
Described more new logo is for notifying to obtain up-to-date website data corresponding to described URL;
Script file call unit 52, for determine described first website visiting request in comprise described in more
During new logo, call preset script file, described script file inquire about in the database and institute
State up-to-date website data corresponding to URL, and the up-to-date website data found is returned to script literary composition
Part call unit;
Client feedback unit 53, for returning to described client by the up-to-date website data found.
The website display device that the embodiment of the present application provides, the first website visiting receiving client transmission please
Asking, the request of this first website visiting comprises the uniform resource position mark URL of website and the more new logo of setting,
Described in comprising in determining the first website visiting request during more new logo, call preset script file, by
Described script file inquires about the up-to-date website data corresponding with URL in database, and will find
Up-to-date website data returns, and the up-to-date website data found is returned to client.From the foregoing, it will be observed that
The application is by increasing more new logo at the first website visiting in asking, notice website display device is called pre-
The script file put, to search the up-to-date website data corresponding with URL, and then returns to client
New website data, it is ensured that the website maintenance personnel of client-side can see the data that website is up-to-date in time.
Optionally, the website display device of the application can also include:
Caching replacement unit, for replacing the up-to-date website data found in caching with described
The website data that URL is corresponding.
Optionally, the website display device of the application can also include:
Second website visiting request reception unit, for receiving the second website visiting request that client sends,
Described second website visiting request only comprises the URL of website;
Inefficacy judging unit, marks for not comprising described renewal in determining described second website visiting request
During knowledge, it is judged that whether website data corresponding with described URL in caching lost efficacy;
Described client feedback unit is additionally operable to, when described inefficacy judging unit judged result is for being, and will
Website data corresponding with described URL in caching returns to described client;
Update queue adding device, for when described inefficacy judging unit judged result is for being, by described
URL adds in renewal queue, and being in the URL updated in queue is to need to carry out website data renewal
URL。
Optionally, above-mentioned inefficacy judging unit may include that
First inefficacy judgment sub-unit, for searching the website data corresponding with described URL in the buffer,
Described website data is marked with timestamp, and described timestamp have recorded the out-of-service time of described website data;
Second inefficacy judgment sub-unit, for the timestamp according to described website data, it is judged that described website
Whether data reach the described out-of-service time;If so, determine that described website data lost efficacy, if it is not, determine institute
State website data not lose efficacy.
Further, the embodiment of the present application additionally provides a kind of website display system, and this system includes First Line
Journey, the second thread and script file, wherein:
Access process website maintenance personnel:
First thread receives the first website visiting request that client sends, described first website visiting request
Comprising the uniform resource position mark URL of website and the more new logo of setting, described more new logo is used for notifying
First thread obtains the up-to-date website data that described URL is corresponding;
First thread determine described first website visiting request in comprise described in more new logo time, call pre-
The script file put, is inquired about corresponding with described URL up-to-date in the database by described script file
Website data, and the up-to-date website data found is returned to first thread;
The up-to-date website data found is returned to described client by first thread;
The up-to-date website data found is replaced net corresponding with described URL in caching by first thread
Stand data.
The access process of user is browsed at general Websites:
First thread receives the second website visiting request that client sends, described second website visiting request
Only comprise the URL of website;
First thread determine described second website visiting request in do not comprise described in more new logo time, it is judged that
Whether website data corresponding with described URL in caching lost efficacy;If so, with described URL in caching
Corresponding website data returns to described client, and is added to by described URL in renewal queue;
Second thread reads URL from described renewal queue, and utilizes the URL of reading and described renewal mark
Know simulation the first website visiting request, the first website visiting request of simulation be sent to described first thread,
So that first thread is called described script file and is searched the up-to-date website number corresponding with the URL of described reading
According to, and the up-to-date website data found is replaced net corresponding with the URL of described reading in caching
Stand data.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like
It is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires
Or imply relation or the order that there is any this reality between these entities or operation.And, art
Language " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, thus
Make to include that the process of a series of key element, method, article or equipment not only include those key elements, and
Also include other key elements being not expressly set out, or also include for this process, method, article or
The key element that person's equipment is intrinsic.In the case of there is no more restriction, by statement " including ... "
The key element limited, it is not excluded that also deposit in including the process of described key element, method, article or equipment
At other identical element.
In this specification, each embodiment uses the mode gone forward one by one to describe, and each embodiment stresses
Being the difference with other embodiments, between each embodiment, identical similar portion sees mutually.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses
The application.Multiple amendment to these embodiments will be aobvious and easy for those skilled in the art
See, generic principles defined herein can in the case of without departing from spirit herein or scope,
Realize in other embodiments.Therefore, the application is not intended to be limited to the embodiments shown herein,
And it is to fit to the widest scope consistent with principles disclosed herein and features of novelty.
Claims (10)
1. a website display methods, it is characterised in that including:
First thread receives the first website visiting request that client sends, described first website visiting request
Comprising the uniform resource position mark URL of website and the more new logo of setting, described more new logo is used for notifying
First thread obtains the up-to-date website data that described URL is corresponding;
First thread determine described first website visiting request in comprise described in more new logo time, call pre-
The script file put, is inquired about corresponding with described URL up-to-date in the database by described script file
Website data, and the up-to-date website data found is returned to first thread;
The up-to-date website data found is returned to described client by first thread.
Method the most according to claim 1, it is characterised in that also include:
The up-to-date website data found is replaced net corresponding with described URL in caching by first thread
Stand data.
Method the most according to claim 2, it is characterised in that also include:
First thread receives the second website visiting request that client sends, described second website visiting request
Only comprise the URL of website;
First thread determine described second website visiting request in do not comprise described in more new logo time, it is judged that
Whether website data corresponding with described URL in caching lost efficacy;
If so, the website data corresponding with described URL in caching is returned to described client, and by institute
State URL to add in renewal queue, be in the URL updated in queue and carry out website data more for needs
New URL.
Method the most according to claim 3, it is characterised in that also include:
Second thread reads URL from described renewal queue, and utilizes the URL of reading and described renewal mark
Know simulation the first website visiting request, the first website visiting request of simulation be sent to described first thread,
So that first thread is called described script file and is searched the up-to-date website number corresponding with the URL of described reading
According to, and the up-to-date website data found is replaced net corresponding with the URL of described reading in caching
Stand data.
Method the most according to claim 3, it is characterised in that described first thread judges in caching
Whether the website data corresponding with described URL lost efficacy, including:
First thread searches the website data corresponding with described URL in the buffer, and described website data marks
Timestamp, described timestamp is had to have recorded the out-of-service time of described website data;
First thread is according to the timestamp of described website data, it is judged that whether described website data reaches described
Out-of-service time;
If so, determine that described website data lost efficacy, if it is not, determine that described website data did not lost efficacy.
6. a website display device, it is characterised in that be applied to first thread, this device includes:
First web site requests receives unit, for receiving the first website visiting request that client sends, institute
State uniform resource position mark URL and the more new logo of setting, institute that the first website visiting request comprises website
State more new logo and obtain up-to-date website data corresponding to described URL for notifying;
Script file call unit, for comprising described renewal in determining described first website visiting request
During mark, call preset script file, described script file inquire about in the database with described
The up-to-date website data that URL is corresponding, and the up-to-date website data found is returned to script file
Call unit;
Client feedback unit, for returning to described client by the up-to-date website data found.
Device the most according to claim 6, it is characterised in that also include:
Caching replacement unit, for replacing the up-to-date website data found in caching with described
The website data that URL is corresponding.
Device the most according to claim 7, it is characterised in that also include:
Second website visiting request reception unit, for receiving the second website visiting request that client sends,
Described second website visiting request only comprises the URL of website;
Inefficacy judging unit, marks for not comprising described renewal in determining described second website visiting request
During knowledge, it is judged that whether website data corresponding with described URL in caching lost efficacy;
Described client feedback unit is additionally operable to, when described inefficacy judging unit judged result is for being, and will
Website data corresponding with described URL in caching returns to described client;
Update queue adding device, for when described inefficacy judging unit judged result is for being, by described
URL adds in renewal queue, and being in the URL updated in queue is to need to carry out website data renewal
URL。
Device the most according to claim 8, it is characterised in that described inefficacy judging unit includes:
First inefficacy judgment sub-unit, for searching the website data corresponding with described URL in the buffer,
Described website data is marked with timestamp, and described timestamp have recorded the out-of-service time of described website data;
Second inefficacy judgment sub-unit, for the timestamp according to described website data, it is judged that described website
Whether data reach the described out-of-service time;If so, determine that described website data lost efficacy, if it is not, determine institute
State website data not lose efficacy.
10. a website display system, it is characterised in that include first thread, the second thread and script
File, wherein:
First thread receives the first website visiting request that client sends, described first website visiting request
Comprising the uniform resource position mark URL of website and the more new logo of setting, described more new logo is used for notifying
First thread obtains the up-to-date website data that described URL is corresponding;
First thread determine described first website visiting request in comprise described in more new logo time, call pre-
The script file put, is inquired about corresponding with described URL up-to-date in the database by described script file
Website data, and the up-to-date website data found is returned to first thread;
The up-to-date website data found is returned to described client by first thread;
The up-to-date website data found is replaced net corresponding with described URL in caching by first thread
Stand data;
First thread is additionally operable to receive the second website visiting request that client sends, and described second website is visited
The request of asking only comprises the URL of website;
First thread determine described second website visiting request in do not comprise described in more new logo time, it is judged that
Whether website data corresponding with described URL in caching lost efficacy;If so, with described URL in caching
Corresponding website data returns to described client, and is added to by described URL in renewal queue;
Second thread reads URL from described renewal queue, and utilizes the URL of reading and described renewal mark
Know simulation the first website visiting request, the first website visiting request of simulation be sent to described first thread,
So that first thread is called described script file and is searched the up-to-date website number corresponding with the URL of described reading
According to, and the up-to-date website data found is replaced net corresponding with the URL of described reading in caching
Stand data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610246495.5A CN105912689B (en) | 2016-04-20 | 2016-04-20 | Website display method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610246495.5A CN105912689B (en) | 2016-04-20 | 2016-04-20 | Website display method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105912689A true CN105912689A (en) | 2016-08-31 |
CN105912689B CN105912689B (en) | 2020-04-21 |
Family
ID=56746482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610246495.5A Active CN105912689B (en) | 2016-04-20 | 2016-04-20 | Website display method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105912689B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107332843A (en) * | 2017-07-01 | 2017-11-07 | 华泰证券股份有限公司 | IOS network requests intercept forwarding cache method and system |
CN108287836A (en) * | 2017-01-09 | 2018-07-17 | 腾讯科技(深圳)有限公司 | A kind of resource caching method and device |
WO2018161813A1 (en) * | 2017-03-08 | 2018-09-13 | 阿里巴巴集团控股有限公司 | Resource loading method and device |
CN108629039A (en) * | 2018-05-11 | 2018-10-09 | 北京汉能光伏投资有限公司 | A kind of data processing method and device |
CN109582851A (en) * | 2018-12-04 | 2019-04-05 | 北京搜狗科技发展有限公司 | Method for processing search results and device |
CN110555178A (en) * | 2019-08-28 | 2019-12-10 | 贝壳技术有限公司 | Data proxy method and device |
CN112632159A (en) * | 2020-12-01 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Database access control method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101997927A (en) * | 2010-11-18 | 2011-03-30 | 厦门市美亚柏科信息股份有限公司 | Method and system for caching data of WEB platform |
US8171161B2 (en) * | 2009-06-30 | 2012-05-01 | Go Daddy Operating Company, LLC | Static and dynamic content delivery |
CN102456035A (en) * | 2010-10-28 | 2012-05-16 | 金蝶软件(中国)有限公司 | Webpage resource cache control method, device and system |
CN104133852A (en) * | 2014-07-04 | 2014-11-05 | 小米科技有限责任公司 | Webpage access method, webpage access device, server and terminal |
CN105069011A (en) * | 2015-07-07 | 2015-11-18 | 安一恒通(北京)科技有限公司 | Webpage favorite management method, device and system |
-
2016
- 2016-04-20 CN CN201610246495.5A patent/CN105912689B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8171161B2 (en) * | 2009-06-30 | 2012-05-01 | Go Daddy Operating Company, LLC | Static and dynamic content delivery |
CN102456035A (en) * | 2010-10-28 | 2012-05-16 | 金蝶软件(中国)有限公司 | Webpage resource cache control method, device and system |
CN101997927A (en) * | 2010-11-18 | 2011-03-30 | 厦门市美亚柏科信息股份有限公司 | Method and system for caching data of WEB platform |
CN104133852A (en) * | 2014-07-04 | 2014-11-05 | 小米科技有限责任公司 | Webpage access method, webpage access device, server and terminal |
CN105069011A (en) * | 2015-07-07 | 2015-11-18 | 安一恒通(北京)科技有限公司 | Webpage favorite management method, device and system |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108287836A (en) * | 2017-01-09 | 2018-07-17 | 腾讯科技(深圳)有限公司 | A kind of resource caching method and device |
CN108287836B (en) * | 2017-01-09 | 2022-09-13 | 腾讯科技(深圳)有限公司 | Resource caching method and device |
CN108572965B (en) * | 2017-03-08 | 2020-03-31 | 阿里巴巴集团控股有限公司 | Resource loading method and device |
WO2018161813A1 (en) * | 2017-03-08 | 2018-09-13 | 阿里巴巴集团控股有限公司 | Resource loading method and device |
CN108572965A (en) * | 2017-03-08 | 2018-09-25 | 阿里巴巴集团控股有限公司 | A kind of resource loading method and device |
US11210109B2 (en) | 2017-03-08 | 2021-12-28 | Banma Zhixing Network (Hongkong) Co., Limited | Method and system for loading resources |
CN107332843A (en) * | 2017-07-01 | 2017-11-07 | 华泰证券股份有限公司 | IOS network requests intercept forwarding cache method and system |
CN108629039B (en) * | 2018-05-11 | 2021-02-19 | 北京汉能光伏投资有限公司 | Data processing method and device |
CN108629039A (en) * | 2018-05-11 | 2018-10-09 | 北京汉能光伏投资有限公司 | A kind of data processing method and device |
CN109582851A (en) * | 2018-12-04 | 2019-04-05 | 北京搜狗科技发展有限公司 | Method for processing search results and device |
CN110555178B (en) * | 2019-08-28 | 2020-07-21 | 贝壳找房(北京)科技有限公司 | Data proxy method and device |
CN110555178A (en) * | 2019-08-28 | 2019-12-10 | 贝壳技术有限公司 | Data proxy method and device |
CN112632159A (en) * | 2020-12-01 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Database access control method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105912689B (en) | 2020-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105912689A (en) | Website display method, apparatus and system | |
US20140249964A1 (en) | System and method for gathering ecommerce data | |
CN102331985B (en) | Method and device for fragment nested caching of webpage | |
CN104202360B (en) | The method of accessed web page, device and router | |
US7827166B2 (en) | Handling dynamic URLs in crawl for better coverage of unique content | |
CN102647462B (en) | Application acquisition and sending method and device | |
KR20150130282A (en) | Intelligent platform for real-time bidding | |
US20060026194A1 (en) | System and method for enabling indexing of pages of dynamic page based systems | |
JP5462983B1 (en) | Information processing apparatus, information processing method, and information processing program | |
US9009602B2 (en) | Assisted browser navigation | |
CN104683329A (en) | Data caching method and system for mobile equipment client | |
RU2015156798A (en) | SYSTEM AND METHOD OF PUSH (PUSH) ADVERTISEMENTS BASED ON THE HOME GATEWAY | |
US20160085874A1 (en) | System and method to identify machine-readable codes | |
CN105069011A (en) | Webpage favorite management method, device and system | |
WO2014108038A1 (en) | Frequently-used website generation client terminal, server, system and method | |
US20170243276A1 (en) | Temperature-based determination of business objects | |
JP2002140224A (en) | Content change managing method | |
TWI514817B (en) | Information redirect method and equipment | |
CN106911735A (en) | Data capture method and device | |
CN110399249A (en) | A kind of data disaster tolerance method and relevant apparatus | |
US11223724B2 (en) | Tracking user information during a website visit to enhance call tracking capabilities | |
CN106230988A (en) | A kind of processing method for playing video files and device | |
US10003637B2 (en) | Method, mobile terminal and system for displaying picture based on wireless network, and storage medium | |
CN107169026B (en) | Website page display method and device | |
JP5364220B1 (en) | Information processing apparatus, information processing method, and information processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |