CN106599146A - Cache page processing method and device and cache page update request processing method and device - Google Patents

Cache page processing method and device and cache page update request processing method and device Download PDF

Info

Publication number
CN106599146A
CN106599146A CN201611110192.7A CN201611110192A CN106599146A CN 106599146 A CN106599146 A CN 106599146A CN 201611110192 A CN201611110192 A CN 201611110192A CN 106599146 A CN106599146 A CN 106599146A
Authority
CN
China
Prior art keywords
page
accumulated value
variable quantity
value
latest edition
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
Application number
CN201611110192.7A
Other languages
Chinese (zh)
Other versions
CN106599146B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201611110192.7A priority Critical patent/CN106599146B/en
Publication of CN106599146A publication Critical patent/CN106599146A/en
Application granted granted Critical
Publication of CN106599146B publication Critical patent/CN106599146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

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 Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a cache page processing method and device and a cache page update request processing method and device. The cache page processing method comprises the steps of: sending a cache page update request carrying a page identifier and a corresponding cached page variation accumulated value to a server, so that the server obtains the cached page variation accumulated value and a latest version page variation accumulated value corresponding to the page identifier; receiving a latest version page and the latest version page variation accumulated value which are fed back by the server when an accumulated value difference is greater than or equal to a preset positive threshold, wherein the accumulated value difference is a difference of the latest version page variation accumulated value and the cached page variation accumulated value; and updating a local cached page corresponding to the page identifier to the received latest version page, and updating the cached page variation accumulated value to the received latest version page variation accumulated value. According to the cache page processing method and device and the cache page update request processing method and device which are disclosed by the invention, page access can be effectively accelerated by utilizing the cached page.

Description

The caching page is processed, caches renewal of the page request processing method and device
Technical field
The present invention relates to page cache technical field, more particularly to a kind of caching page is processed, caching renewal of the page please Seek treating method and apparatus.
Background technology
At present, server can storing page data, when receive terminal transmission access request when, server can read institute The page data of storage simultaneously organizes the formation of the page, and the page is sent to terminal, and by terminal the page is shown.User then can be from aobvious Required information is got in the page for showing.In order to accelerate page display efficiency, server can integrally cache the page, set When the access request that the terminal sends is received in fixed caching period, directly the page of caching can be back to into terminal.Eventually End can also locally cache the page, from the page for locally directly reading caching and show within the caching period of setting.
However, either the terminal buffers page or the server buffer page, were shown within the caching period of setting The page of caching, more than the page that caching period then updates caching.But if caching period setting is shorter, is accomplished by a short time The page is updated, but now the page may also not change;If caching period setting is longer, the page needs after changing User can be just showed through the long period.Therefore, at present the mode of the caching page is difficult to effectively utilize and cache the page and add Speed is accessed.
The content of the invention
Based on this, it is necessary to be difficult to effectively utilize the problem for caching the page for the mode of the caching page at present, carry Process, cache renewal of the page request processing method and device for a kind of caching page.
One kind caching page processing method, including:
The caching renewal of the page for carrying page iden-tity and having cached page variable quantity accumulated value accordingly is sent to server Request so that the server obtain described in cached page variable quantity accumulated value and corresponding with the page iden-tity newest Version page variable quantity accumulated value;
Receive the server accumulated value difference more than or equal to the latest edition page that feeds back when presetting positive threshold value and The latest edition page variable quantity accumulated value, the accumulated value difference is the latest edition page variable quantity accumulated value and institute State the difference for caching page variable quantity accumulated value;
The latest edition page that the page is updated to receive has been cached by locally corresponding with the page iden-tity, and The latest edition page variable quantity accumulated value that page variable quantity accumulated value is updated to receive has been cached by described.
One kind caching Page handling device, including:
Caching renewal of the page request sending module, for sending to server page iden-tity and corresponding caching page are carried The caching renewal of the page request of face variable quantity accumulated value so that cached page variable quantity accumulated value described in the server acquisition And latest edition page variable quantity accumulated value corresponding with the page iden-tity;
Latest edition page receiver module, for receiving the server in accumulated value difference more than or equal to default positive threshold The latest edition page fed back during value and the latest edition page variable quantity accumulated value, the accumulated value difference is described newest Version page variable quantity accumulated value and the difference for having cached page variable quantity accumulated value;
Buffer update module, for having cached the institute that the page is updated to receive by locally corresponding with the page iden-tity The latest edition page is stated, and the latest edition page change that page variable quantity accumulated value is updated to receive has been cached by described Change amount accumulated value.
One kind caching renewal of the page request processing method, including:
Order caching renewal of the page is asked;
Page variable quantity accumulated value is cached according to the caching renewal of the page acquisition request page iden-tity and accordingly;
Obtain latest edition page variable quantity accumulated value corresponding with the page iden-tity;
When the latest edition page variable quantity accumulated value is more than with the difference for having cached page variable quantity accumulated value Or during equal to presetting positive threshold value, feeding back and described delaying for updating the latest edition page that cached the page and for updating Deposit the latest edition page variable quantity accumulated value of page variable quantity accumulated value.
One kind caching Page handling device, including:
Caching renewal of the page request sending module, for sending to server page iden-tity and corresponding caching page are carried The caching renewal of the page request of face variable quantity accumulated value so that cached page variable quantity accumulated value described in the server acquisition And latest edition page variable quantity accumulated value corresponding with the page iden-tity;
Receiver module, feeds back most for receiving the server when accumulated value difference is more than or equal to default positive threshold value The redaction page and the latest edition page variable quantity accumulated value, the accumulated value difference is latest edition page change Amount accumulated value and the difference for having cached page variable quantity accumulated value;
Buffer update module, for having cached the institute that the page is updated to receive by locally corresponding with the page iden-tity The latest edition page is stated, and the latest edition page change that page variable quantity accumulated value is updated to receive has been cached by described Change amount accumulated value.
The above-mentioned caching page is processed, caches renewal of the page request processing method and device, and the accumulation of page variable quantity has been cached Value can reflect all previous page change for having cached that the page experienced, and latest edition page variable quantity accumulated value then can reflect most The all previous page change that the redaction page is experienced.So latest edition page variable quantity accumulated value with cache page variable quantity The accumulated value difference of accumulated value, it is possible to reflect the latest edition page compared to the intensity of variation for caching the page so that page The degree of face change can quantify.When accumulated value difference is more than positive threshold value is preset, represent the latest edition page compared to delaying The degree for depositing page change reaches the degree that predetermined threshold value is reflected, now feeds back the latest edition page so that compared to delaying Deposit page change to reach a certain degree of latest edition page and can be fed back in time, can cache the page with effectively utilizes and accelerate Page access.
Description of the drawings
Fig. 1 is that page management systematic difference environment map is cached in one embodiment;
Fig. 2 is the internal structure schematic diagram of terminal in one embodiment;
Fig. 3 is the internal structure schematic diagram of server in one embodiment;
Fig. 4 is the schematic flow sheet that page processing method is cached in one embodiment;
Fig. 5 is the schematic diagram of the cacheable application interface of application program in one embodiment;
Fig. 6 is that the schematic diagram that page processing method realizes principle is cached in a concrete application scene;
Fig. 7 is the schematic flow sheet that renewal of the page request processing method is cached in one embodiment;
Fig. 8 is the schematic flow sheet of the step of latest edition page variable quantity accumulated value is updated in one embodiment;
Fig. 9 is the structured flowchart that Page handling device is cached in one embodiment;
Figure 10 is the structured flowchart that Page handling device is cached in another embodiment;
Figure 11 is that the structured flowchart that processing meanss are asked in renewal of the page is cached in one embodiment;
Figure 12 is that the structured flowchart that processing meanss are asked in renewal of the page is cached in another embodiment.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and It is not used in the restriction present invention.
Fig. 1 is that page management systematic difference environment map is cached in one embodiment.With reference to Fig. 1, the page access system Including terminal 110 and server 120.Terminal 110 and server 120 can be communicated by network connection.Terminal 110 can be used to cache With the corresponding page of page iden-tity and it is corresponding cached page variable quantity accumulated value, the page of caching is caching page Face.Having cached the page and cached page variable quantity accumulated value accordingly can be obtained from server and be cached to by terminal 110 Terminal 110 is local.Terminal 110 can send to carry page iden-tity and cached page variable quantity accordingly to server 120 accumulates The caching renewal of the page request of value.Server 120 can delay according to renewal of the page acquisition request page iden-tity is cached and accordingly Deposit page variable quantity accumulated value;Obtain latest edition page variable quantity accumulated value corresponding with page iden-tity.Server 120 can be counted Calculate latest edition page variable quantity accumulated value and cache the accumulated value difference of page variable quantity accumulated value, and compare the accumulated value Difference and default positive threshold value.When accumulated value difference is more than or equal to positive threshold value is preset, server 120 can feed back to terminal 110 The latest edition page variable quantity accumulated value and the corresponding latest edition page;When accumulated value difference is less than positive threshold value is preset, Server 120 can send to terminal 110 and not update the notice for caching the page.If terminal 110 receive the latest edition page and Corresponding latest edition page variable quantity accumulated value, then can show the latest edition page for receiving, and can be according to receiving The latest edition page and latest edition page variable quantity accumulated value have cached the page and have become by the local page of caching and accordingly Change amount accumulated value is updated.If terminal 110 is received does not update the notice for caching the page, can directly be read according to the notice Take the local page of caching and show.
Fig. 2 is the internal structure schematic diagram of terminal in one embodiment.As shown in Fig. 2 the terminal include it is total by system Processor, non-volatile memory medium, built-in storage, network interface, display screen and input unit that line connects.Wherein, terminal Non-volatile memory medium be stored with operating system, also including a kind of caching Page handling device, the caching page processes dress Put for realizing a kind of caching page processing method.The processor of terminal is used to provide calculating and control ability, supports entirely eventually The operation at end.Built-in storage in terminal provides ring for the operation of the caching Page handling device in non-volatile memory medium Border, can be stored with computer-readable instruction in the built-in storage, and the computer-readable instruction is when executed by, and can cause place Reason device performs a kind of caching page processing method.The network interface of terminal is used to carry out network service with server, such as sends slow Renewal of the page request is deposited, the latest edition page, latest edition page variable quantity accumulated value is received and is not updated and cached the page Notice etc..The display screen of terminal can be LCDs or electric ink display screen etc., and input unit can be shown Button, trace ball or Trackpad, or the external key arranged on the touch layer covered on screen, or terminal enclosure Disk, Trackpad or mouse etc..The terminal can be desktop computer or mobile terminal, mobile terminal for example mobile phone, panel computer, Personal digital assistant or Wearable etc..It will be understood by those skilled in the art that the structure illustrated in Fig. 2, only with this The block diagram of the related part-structure of application scheme, does not constitute the restriction of the terminal being applied thereon to application scheme, has The terminal of body can be included than more or less of part shown in figure, or combine some parts, or with different portions Part is arranged.
Fig. 3 is the internal structure schematic diagram of server in one embodiment.As shown in figure 3, the server is included by being Processor, non-volatile memory medium, built-in storage and network interface that system bus connects.Wherein, the server is non-volatile Property storage medium be stored with operating system, database and caching renewal of the page request processing meanss, caching renewal of the page request Processing meanss are used to realize a kind of caching renewal of the page request processing method.The processor of the server is used to provide calculating and controls Ability processed, supports the operation of whole server.The built-in storage of the server is the caching page in non-volatile memory medium The operation for updating request processing meanss provides environment, and computer-readable instruction can be stored in the built-in storage, and the computer can Reading instruction is when executed by, and can cause a kind of caching renewal of the page request processing method of computing device.The server Network interface is used to communicate by network connection with outside terminal according to this, and such as order caching renewal of the page request sends newest The version page, latest edition page variable quantity accumulated value and notice for having cached the page etc. is not updated.Server can be with solely Vertical server or multiple server groups into server cluster realizing.It will be understood by those skilled in the art that in Fig. 3 The structure for illustrating, only the block diagram of the part-structure related to application scheme, does not constitute and application scheme is applied The restriction of server thereon, specific server can be included than more or less of part shown in figure, or combination Some parts, or arrange with different parts.
Fig. 4 is the schematic flow sheet that page processing method is cached in one embodiment.The present embodiment mainly in this way should Illustrate for the terminal 110 in above-mentioned Fig. 1.With reference to Fig. 4, the caching page processing method specifically includes following steps:
S402, the caching page for carrying page iden-tity and having cached page variable quantity accumulated value accordingly is sent to server Update request so that server has been cached page variable quantity accumulated value and the latest edition page corresponding with page iden-tity Variable quantity accumulated value.
Specifically, terminal can obtain page iden-tity, and reading is corresponding with page iden-tity to have cached page variable quantity accumulated value, And then caching renewal of the page request is generated according to page iden-tity and the corresponding page variable quantity accumulated value that cached, the page will be cached Update request to send to server.Server receives the caching renewal of the page request, and from caching renewal of the page request page is extracted Face identifies and has cached accordingly page variable quantity accumulated value, and inquires about latest edition page change corresponding with the page iden-tity Change amount accumulated value.
Wherein, page iden-tity is used for the corresponding page of unique mark.Content in the page that page iden-tity is identified is usual Can over time change and change.The page of the different content that same page iden-tity is identified, is the page of different editions.The page All or part of content sources in the identified page of mark are in server.Terminal local can cache corresponding with the page iden-tity The page, the page of caching as cached the page.
Latest edition page variable quantity accumulated value is that the page corresponding to the latest edition page corresponding with page iden-tity becomes Change amount accumulated value.Latest edition page variable quantity accumulated value can be specifically indicated release page change corresponding from page iden-tity Quantized value after all changes experienced by the latest edition page quantify accumulates the accumulated value for obtaining.The indicated release page can Being the corresponding initial blank page of page iden-tity, or from initial blank page to any version cached in the page The page.
In one embodiment, terminal can obtain page iden-tity by the application program for displayed page.Further, Terminal can obtain page presentation instruction institute by for the application program of displayed page, when page presentation instruction is got The page iden-tity specified.Page presentation is instructed for triggering page presentation, and the page iden-tity of page presentation instruction is to need The corresponding page iden-tity of the page of displaying.Terminal can also periodically obtain page iden-tity, so as to be periodically executed the present embodiment in Caching page processing method.The page can be webpage, and the page can also be the application interface in application program, and application interface is as answered The first screen page directly shown after being started with program.Application program can be social networking application program, game application, at word Reason application program or pictures management application program etc., social networking application program such as instant messaging application program or live application journey Sequence etc..
Wherein, it is the corresponding page variable quantity accumulated value in caching page face that page variable quantity accumulated value has been cached.Quantization is The transition activities of the page are converted into finger the processing procedure of gageable numerical value, and the transition activities of the page are quantified through quantization Value.Quantized value can be on the occasion of.The one-shot change that page elements occur in the page is referred to as one-shot change action.Page variable quantity tires out Product value and the number of times positive correlation for experiencing transition activities, the transition activities number of times that the concrete page is passed through is more, and the corresponding page becomes Change amount accumulated value is bigger.
Further, page iden-tity is corresponding has cached page variable quantity accumulated value, can be specifically from page iden-tity pair The indicated release page answered becomes to turn to and caches the quantized value after all changes that the page experienced quantify and accumulate tiring out of obtaining Product value.The indicated release page can be the corresponding initial blank page of page iden-tity, or from initial blank page to Any version page in the caching page.
In one embodiment, terminal can be inquired about and cache the page with the presence or absence of corresponding with page iden-tity.When judgement is deposited It is corresponding with page iden-tity cache the page when, terminal can read it is corresponding with page iden-tity cached the page variable quantity accumulation Value.When judge do not exist it is corresponding with page iden-tity cache the page when, terminal can directly to server send carrying the page The pressure of mark updates request, and the reception server updates the corresponding with page iden-tity newest of request direct feedback according to the pressure The version page.
S404, the reception server accumulated value difference more than or equal to the latest edition page that feeds back when presetting positive threshold value and Latest edition page variable quantity accumulated value, accumulated value difference is latest edition page variable quantity accumulated value and has cached page change The difference of amount accumulated value.
Specifically, server can calculate latest edition page variable quantity accumulated value and cache page variable quantity accumulated value Accumulated value difference, and the accumulated value difference of calculating is compared with default positive threshold value.If accumulated value difference is more than or equal to presetting just Threshold value, then server the latest edition page and corresponding latest edition page variable quantity accumulated value can be fed back to terminal.Wherein, Preset the numerical value that positive threshold value is greater than 0.
In one embodiment, server can read corresponding with page iden-tity when needing to push the latest edition page Newest page elements simultaneously form the latest edition page and then push.Latest edition is generated when needing and pushing the latest edition page The page is simultaneously pushed, and can save server resource.
S406, by locally corresponding with page iden-tity the latest edition page that the page is updated to receive has been cached, and will The latest edition page variable quantity accumulated value that page variable quantity accumulated value is updated to receive has been cached.
Specifically, terminal receives the latest edition page and latest edition page variable quantity accumulated value of server feedback Afterwards, the local page of caching is updated to into the latest edition page, the caching page after being updated.Terminal will also be local Page variable quantity accumulated value having been cached and being updated to latest edition page variable quantity accumulated value, the page of caching after being updated has become Change amount accumulated value.
In one embodiment, server can latest edition page variable quantity accumulated value and cached page variable quantity tire out When the difference of product value is more than or equal to positive threshold value is preset, to the terminal feedback latest edition page relative to the difference for caching the page Part and latest edition page variable quantity accumulated value.Terminal will can cache the page and constitute the latest edition page with difference section And cache, the caching page after being updated, and the local page variable quantity accumulated value of caching is updated to into latest edition Page variable quantity accumulated value, the page variable quantity accumulated value of caching after being updated.Difference section can be according to latest edition page Face variable quantity accumulated value and cached page variable quantity accumulated value accumulated value difference determine.
Above-mentioned caching page processing method, has cached page variable quantity accumulated value and can reflect and cached what the page was experienced All previous page change, latest edition page variable quantity accumulated value can then reflect that all previous page that the latest edition page is experienced becomes Change.So latest edition page variable quantity accumulated value with cache the accumulated value difference of page variable quantity accumulated value, it is possible to it is anti- The latest edition page is mirrored compared to the intensity of variation for caching the page so that the degree of page change can quantify.Work as accumulation When value difference value is more than positive threshold value is preset, represent that the latest edition page reaches predetermined threshold value compared to the degree for caching page change The degree for being reflected, now feed back the latest edition page so that compared to cache the page change reach it is a certain degree of newest The version page can be fed back in time, can have been cached the page with effectively utilizes and accelerated page access.
In one embodiment, the caching page processing method also includes:When latest edition page variable quantity accumulated value and When having cached the accumulated value difference of page variable quantity accumulated value less than positive threshold value is preset, not updating for the reception server feedback is delayed Deposit the notice of the page;The page has been cached according to notifying that directly displaying is locally corresponding with page iden-tity.
Specifically, server can cache latest edition page variable quantity accumulated value is calculated and page variable quantity accumulated value Accumulated value difference after, the accumulated value difference of calculating is compared with default positive threshold value.If accumulated value difference is less than default positive threshold value, Then server does not feed back the latest edition page and corresponding latest edition page variable quantity accumulated value, but to terminal feedback not more The new notice for having cached the page.Terminal updates to have cached the page and cached the page accordingly after the notice is received, not and becomes Change amount accumulated value, but directly show and locally corresponding with page iden-tity cached the page.
In the present embodiment, the reflection of accumulated value difference is the latest edition page compared to the degree for caching page change, When accumulated value difference has cached the page more than updating when presetting positive threshold value, when accumulated value difference is less than default positive threshold value then not more Newly the page has been cached, can accurately control and cache the page and be just updated when there occurs the change of much degree, so as to Page acceleration page access can be cached with more efficient utilization.
In one embodiment, it is that each page elements cached in the page are experienced that page variable quantity accumulated value has been cached The accumulated value that transition activities add up after being quantified according to the quantization weight value corresponding to respective page element;The latest edition page Variable quantity accumulated value is that each respective page element in the latest edition page experiences transition activities according to respective page element institute The accumulated value that corresponding quantization weight value adds up after being quantified.
Wherein, page elements are the component units of the page.The page of the corresponding various versions of page iden-tity has corresponding Page elements, the exhibition method of corresponding page elements can be with difference in the page of different editions.The displaying of page elements Position of the mode such as respective page element in the affiliated page, respective page element and other page elements in the affiliated page The content of order and respective page element.The transition activities of every kind of page elements have been assigned respectively corresponding quantization weight Value, when certain page elements changes, can directly using the quantization weight value is as the quantized value after change quantization and adds up, Obtain the page variable quantity accumulated value corresponding to the page after page elements change.Quantization weight value can be on the occasion of.
In the present embodiment, page variable quantity accumulated value has been cached can reflect exactly and cached the page that the page is experienced Element variation, and the significance level that page elements change can be reflected by corresponding quantization weight value.The latest edition page becomes Change amount accumulated value can exactly reflect the page elements change that the latest edition page is experienced, and by corresponding quantization weight Value can reflect the significance level that page elements change.So accumulated value difference can reflect the intensity of variation of details in page-out And significance level, such that it is able to more accurately control to cache the renewal of the page, can more efficiently using caching page Face accelerates page access.
In one embodiment, page elements include content, page block neutron area in the distribution of page block, page block One or more in domain, description picture, descriptive text and statistic information etc..
Wherein, the quantity of block included in the page block distribution such as page, order and position.Page block is referred to Included independent block in the page, page block 510 and 520 as shown in Figure 5.Page block neutron region is page pool Independent region included by block.As page block 520 includes subregion 521 and 522 in Fig. 5.
Description picture and descriptive text, may reside in outside page block or in page block.Retouching in page block State picture or descriptive text specifically can be in the subregion in page block.Such as subregion 521 is described including subregion Picture 521a and subregion descriptive text 521b, subregion 522 describes picture 522a and subregion descriptive text including subregion 522b.Statistic information such as activity participation number or ranking information etc., ranking information such as main broadcaster's temperature rating Information.
In one embodiment, page elements experience transition activities can include page block changes in distribution, page pool One or more in block neutron regional distribution change, description picture change, descriptive text change and statistic change etc..Page The change of face block the changes in distribution such as Show Styles of page block, quantity and order.Page block neutron regional distribution change Such as the change of the Show Styles, quantity and order in page block neutron region.Statistic change such as the change of activity participation number.
In one embodiment, the transition activities of the page elements corresponding to page iden-tity are divided into different grades, And the allocated quantization weight value with affiliated rank adaptation;The quantization weight value that different brackets is adapted to is different.
In the present embodiment, the transition activities of the page elements of same levels to there is identical quantization weight value, not on an equal basis The corresponding different quantization weight value of the transition activities of the page elements of level.The transition activities pair of so different grades of page elements The contribution of page variable quantity accumulated value is different, and the less transition activities of some page elements generations can just be triggered and cache the page Renewal, some page elements then need more transition activities can just to trigger the renewal for having cached the page, so as to can More accurately to control to cache the renewal of the page.
In one embodiment, the transition activities of the page elements corresponding to page iden-tity can be divided into the first estate, Two grades and the tertiary gradient, and the corresponding quantization weight value of transition activities of the first estate is more than the transition activities pair of the second grade The quantization weight value answered, the corresponding quantization weight value of transition activities of the second grade is corresponding more than the transition activities of the tertiary gradient Quantization weight value.Wherein, the transition activities of the first estate such as page block changes in distribution or page block neutron area distribution Change etc., as described picture change and descriptive text change, the transition activities of the tertiary gradient are as united for the transition activities of the second grade Metering change.
In one embodiment, transition activities be quantized according to maximum quantization weight value more than or equal to it is default just Threshold value;Transition activities be quantized according to minimum quantization weighted value less than preset positive threshold value.
Wherein, transition activities be quantized according to maximum quantization weight value, be the corresponding all pages of page iden-tity The maximum in quantization weight value corresponding to the transition activities of element, maximum quantization weight value can be one or more. Transition activities be quantized according to minimum quantization weighted value, be the transition activities institute of the corresponding all page elements of page iden-tity Minimum of a value in corresponding quantization weight value.Off-peak quantization weight value respectively less than presets positive threshold value.
In the present embodiment, maximum quantization weight value is more than default positive threshold value, and minimum quantization weighted value is less than and presets just Threshold value, it is ensured that some transition activities are once generation just can directly trigger the renewal for caching the page, and other change Action is then needed to be occurred repeatedly can just trigger the renewal for having cached the page.The quantization that the maximum can be given for important transition activities Weighted value, the caused page change of transition activities institute of so maximum quantization weight value can be with immediate updating, by the different pages The significance level of the action of element is substantially distinguished.
In one embodiment, the quantization weight value corresponding to the transition activities of page elements corresponding with page iden-tity, And the user's attention rate positive correlation corresponding to the transition activities of page elements corresponding with page iden-tity.
Specifically, quantization weight value is bigger, the corresponding use of transition activities of the page elements corresponding to the quantization weight value Family attention rate is bigger, and quantization weight value is less, then the corresponding use of transition activities of the page elements corresponding to the quantization weight value Family attention rate is less.User's attention rate is quantized value of the user to the degree of concern of the transition activities of page elements.User pays close attention to Degree can set according to priori, it is also possible to be obtained by big data statistical analysis.In one embodiment, belonging to transition activities Quantization weight value corresponding to grade, with the user's attention rate positive correlation corresponding to the transition activities.
Illustrate, user is to the change of movable participation number and insensitive, i.e. user's attention rate is less, then activity ginseng Relatively low quantization weight value can be just given with the change of number.And user is more sensitive to page block changes in distribution, that is, use Family attention rate is larger, then page block changes in distribution can just give higher quantization weight value.
In the present embodiment, the quantization weight value and corresponding user's attention rate positive correlation corresponding to transition activities, so When there is fewer number in the high transition activities of user's attention rate, it is possible to update cached the page as soon as possible, and work as user pass When the relatively low transition activities of note degree occur more number of times, can just update and cache the page so that having cached the page can meet use Family demand, and can cache page acceleration page access with effectively utilizes.
Illustrate the principle of above-mentioned caching page processing method with a concrete application scene below.In this application scene, Live application program provides on startup the first screen page.The transition activities of different page elements can be given by grade in the head screen pages Different quantization weight values, such as first screen page layout change, first screen programme televised live block change transition activities can be divided into The first estate, the transition activities such as the change of programme televised live front cover or the change of programme televised live title can be divided into second etc. in the head screen pages Level, programme televised live participates in the transition activities such as the order change of subregion in number change or same programme televised live block can be divided For the tertiary gradient.The corresponding quantization weight value of transition activities of the first estate is maximum, the corresponding amount of transition activities of the tertiary gradient Change weighted value minimum.With reference to Fig. 6, page variable quantity accumulated value management server collection each page corresponding with first screen page iden-tity The transition activities that element management system is triggered, so as to according to the quantization corresponding to each transition activities configured in weight allocation list Accumulation after weighted value quantifies transition activities shields page variable quantity accumulated value to latest edition is first.Live application program is starting When, if latest edition head shields page variable quantity accumulated value and cached the first difference for shielding page variable quantity accumulated value being more than or equal to Positive threshold value is preset, then receives the latest edition head screen pages that page variable quantity accumulated value management server is pushed by live broadcast system It is first with corresponding latest edition to shield page variable quantity accumulated value, and show the first screen page of latest edition and update caching;If difference Less than default positive threshold value, then directly show and cached the first screen page.
Fig. 7 is the schematic flow sheet that renewal of the page request processing method is cached in one embodiment.The present embodiment mainly with The server 120 that the method is applied in above-mentioned Fig. 1 is illustrating.With reference to Fig. 7, the renewal of the page request processing method is concrete Comprise the steps:
S702, order caching renewal of the page request.
Specifically, terminal can obtain page iden-tity, and reading is corresponding with page iden-tity to have cached page variable quantity accumulated value, The caching renewal of the page request for carrying page iden-tity and having cached page variable quantity accumulated value accordingly is sent to server, by taking Business device receives the caching renewal of the page request.
Wherein, page iden-tity is used for the corresponding page of unique mark.Content in the page that page iden-tity is identified is usual Can over time change and change.The page of the different content that same page iden-tity is identified, is the page of different editions.The page All or part of content sources in the identified page of mark are in server.Terminal local can cache corresponding with the page iden-tity The page, the page of caching as cached the page.
S704, has cached according to caching renewal of the page acquisition request page iden-tity and page variable quantity accumulated value accordingly.
Wherein, it is the corresponding page variable quantity accumulated value in caching page face that page variable quantity accumulated value has been cached.Quantization is The transition activities of the page are converted into finger the processing procedure of gageable numerical value, and the transition activities of the page are quantified through quantization Value.Page variable quantity accumulated value and the number of times positive correlation for experiencing transition activities, the transition activities number of times that the concrete page is passed through is got over Many, corresponding page variable quantity accumulated value is bigger.
Further, page iden-tity is corresponding has cached page variable quantity accumulated value, can be specifically from page iden-tity pair The indicated release page answered becomes to turn to and caches the quantized value after all changes that the page experienced quantify and accumulate tiring out of obtaining Product value.The indicated release page can be the corresponding initial blank page of page iden-tity, or from initial blank page to Any version page in the caching page.
S706, obtains latest edition page variable quantity accumulated value corresponding with page iden-tity.
Wherein, latest edition page variable quantity accumulated value is the page corresponding to the latest edition page corresponding with page iden-tity Face variable quantity accumulated value.Latest edition page variable quantity accumulated value can be specifically the indicated release page corresponding from page iden-tity Change turns to the quantized value after all changes quantization that the latest edition page is experienced and accumulates the accumulated value for obtaining.Indicated release page Face can be the corresponding initial blank page of page iden-tity, or any in the page to caching from initial blank page The version page.
S708, when latest edition page variable quantity accumulated value is more than or waits with the difference for caching page variable quantity accumulated value In preset positive threshold value when, feed back for update cached the page the latest edition page and for update cached page variable quantity The latest edition page variable quantity accumulated value of accumulated value.
Specifically, server can calculate latest edition page variable quantity accumulated value and cache page variable quantity accumulated value Accumulated value difference, and the accumulated value difference of calculating is compared with default positive threshold value.If accumulated value difference is more than or equal to presetting just Threshold value, then server the latest edition page and corresponding latest edition page variable quantity accumulated value can be fed back to terminal.Wherein, Preset the numerical value that positive threshold value is greater than 0.
Terminal is received after the latest edition page of server feedback and latest edition page variable quantity accumulated value, will be local The page of caching be updated to the latest edition page, the caching page after being updated.Terminal is also by local caching page Face variable quantity accumulated value is updated to latest edition page variable quantity accumulated value, the page of the caching variable quantity accumulation after being updated Value.
In one embodiment, server can read corresponding with page iden-tity when needing to push the latest edition page Newest page elements simultaneously form the latest edition page and then push.Latest edition is generated when needing and pushing the latest edition page The page is simultaneously pushed, and can save server resource.
In one embodiment, server can latest edition page variable quantity accumulated value and cached page variable quantity tire out When the difference of product value is more than or equal to positive threshold value is preset, to the terminal feedback latest edition page relative to the difference for caching the page Part and latest edition page variable quantity accumulated value.Terminal will can cache the page and constitute the latest edition page with difference section And cache, the caching page after being updated, and the local page variable quantity accumulated value of caching is updated to into latest edition Page variable quantity accumulated value, the page variable quantity accumulated value of caching after being updated.Difference section can be according to latest edition page Face variable quantity accumulated value and cached page variable quantity accumulated value accumulated value difference determine.
Above-mentioned caching renewal of the page request processing method, has cached page variable quantity accumulated value and can reflect and cached the page The all previous page change experienced, latest edition page variable quantity accumulated value can then reflect that what the latest edition page experienced goes through Secondary page change.So latest edition page variable quantity accumulated value with cache the accumulated value difference of page variable quantity accumulated value, Can just reflect the latest edition page compared to the intensity of variation for caching the page so that the degree of page change can be measured Change.When accumulated value difference is more than positive threshold value is preset, represent that the latest edition page reaches compared to the degree for caching page change To the degree that predetermined threshold value is reflected, the latest edition page is now fed back so that reach necessarily compared to page change is cached The latest edition page of degree can be fed back in time, can have been cached the page with effectively utilizes and accelerated page access.
In one embodiment, the caching renewal of the page request processing method also includes:When latest edition page variable quantity When accumulated value with the accumulated value difference of page variable quantity accumulated value is cached less than positive threshold value is preset, to initiation caching renewal of the page The terminal feedback of request does not update the notice for having cached the page so that terminal directly shows caching page corresponding with page iden-tity Face.
Specifically, server can cache latest edition page variable quantity accumulated value is calculated and page variable quantity accumulated value Accumulated value difference after, the accumulated value difference of calculating is compared with default positive threshold value.If accumulated value difference is less than default positive threshold value, Then server does not feed back the latest edition page and corresponding latest edition page variable quantity accumulated value, but to terminal feedback not more The new notice for having cached the page.Terminal updates to have cached the page and cached the page accordingly after the notice is received, not and becomes Change amount accumulated value, but directly show and locally corresponding with page iden-tity cached the page.
In the present embodiment, the reflection of accumulated value difference is the latest edition page compared to the degree for caching page change, When accumulated value difference has cached the page more than updating when presetting positive threshold value, when accumulated value difference is less than default positive threshold value then not more Newly the page has been cached, can accurately control and cache the page and be just updated when there occurs the change of much degree, so as to Page acceleration page access can be cached with more efficient utilization.
In one embodiment, it is that each page elements cached in the page are experienced that page variable quantity accumulated value has been cached The accumulated value that transition activities add up after being quantified according to the quantization weight value corresponding to respective page element;The latest edition page Variable quantity accumulated value is that each respective page element in the latest edition page experiences transition activities according to respective page element institute The accumulated value that corresponding quantization weight value adds up after being quantified.
Wherein, page elements are the component units of the page.The page of the corresponding various versions of page iden-tity has corresponding Page elements, the exhibition method of corresponding page elements can be with difference in the page of different editions.The displaying of page elements Position of the mode such as respective page element in the affiliated page, respective page element and other page elements in the affiliated page The content of order and respective page element.The transition activities of every kind of page elements have been assigned respectively corresponding quantization weight Value, when certain page elements changes, can directly using the quantization weight value is as the quantized value after change quantization and adds up, Obtain the page variable quantity accumulated value corresponding to the page after page elements change.
In the present embodiment, page variable quantity accumulated value has been cached can reflect exactly and cached the page that the page is experienced Element variation, and the significance level that page elements change can be reflected by corresponding quantization weight value.The latest edition page becomes Change amount accumulated value can exactly reflect the page elements change that the latest edition page is experienced, and by corresponding quantization weight Value can reflect the significance level that page elements change.So accumulated value difference can reflect the intensity of variation of details in page-out And significance level, such that it is able to more accurately control to cache the renewal of the page, can more efficiently using caching page Face accelerates page access.
In one embodiment, page elements include content, page block neutron area in the distribution of page block, page block One or more in domain, description picture, descriptive text and statistic information etc..
Wherein, the quantity of block included in the page block distribution such as page, order and position.Page block is referred to Included independent block in the page, page block 510 and 520 as shown in Figure 5.Page block neutron region is page pool Independent region included by block.As page block 520 includes subregion 521 and 522 in Fig. 5.
Description picture and descriptive text, may reside in outside page block or in page block.Retouching in page block State picture or descriptive text specifically can be in the subregion in page block.Such as subregion 521 is described including subregion Picture 521a and subregion descriptive text 521b, subregion 522 describes picture 522a and subregion descriptive text including subregion 522b.Statistic information such as activity participation number or ranking information etc., ranking information such as main broadcaster's temperature rating Information.
In one embodiment, page elements experience transition activities can include page block changes in distribution, page pool One or more in block neutron regional distribution change, description picture change, descriptive text change and statistic change etc..Page The change of face block the changes in distribution such as Show Styles of page block, quantity and order.Page block neutron regional distribution change Such as the change of the Show Styles, quantity and order in page block neutron region.Statistic change such as the change of activity participation number.
In one embodiment, the transition activities of the page elements corresponding to page iden-tity are divided into different grades, And the allocated quantization weight value with affiliated rank adaptation;The quantization weight value that different brackets is adapted to is different.
In the present embodiment, the transition activities of the page elements of same levels to there is identical quantization weight value, not on an equal basis The corresponding different quantization weight value of the transition activities of the page elements of level.The transition activities pair of so different grades of page elements The contribution of page variable quantity accumulated value is different, and the less transition activities of some page elements generations can just be triggered and cache the page Renewal, some page elements then need more transition activities can just to trigger the renewal for having cached the page, so as to can More accurately to control to cache the renewal of the page.
In one embodiment, the transition activities of the page elements corresponding to page iden-tity can be divided into the first estate, Two grades and the tertiary gradient, and the corresponding quantization weight value of transition activities of the first estate is more than the transition activities pair of the second grade The quantization weight value answered, the corresponding quantization weight value of transition activities of the second grade is corresponding more than the transition activities of the tertiary gradient Quantization weight value.Wherein, the transition activities of the first estate such as page block changes in distribution or page block neutron area distribution Change etc., as described picture change and descriptive text change, the transition activities of the tertiary gradient are as united for the transition activities of the second grade Metering change.
In one embodiment, transition activities be quantized according to maximum quantization weight value more than or equal to it is default just Threshold value;Transition activities be quantized according to minimum quantization weighted value less than preset positive threshold value.
Wherein, transition activities be quantized according to maximum quantization weight value, be the corresponding all pages of page iden-tity The maximum in quantization weight value corresponding to the transition activities of element, maximum quantization weight value can be one or more. Transition activities be quantized according to minimum quantization weighted value, be the transition activities institute of the corresponding all page elements of page iden-tity Minimum of a value in corresponding quantization weight value.Off-peak quantization weight value respectively less than presets positive threshold value.
In the present embodiment, maximum quantization weight value is more than default positive threshold value, and minimum quantization weighted value is less than and presets just Threshold value, it is ensured that some transition activities are once generation just can directly trigger the renewal for caching the page, and other change Action is then needed to be occurred repeatedly can just trigger the renewal for having cached the page.The quantization that the maximum can be given for important transition activities Weighted value, the caused page change of transition activities institute of so maximum quantization weight value can be with immediate updating, by the different pages The significance level of the action of element is substantially distinguished.
In one embodiment, the quantization weight value corresponding to the transition activities of page elements corresponding with page iden-tity, And the user's attention rate positive correlation corresponding to the transition activities of page elements corresponding with page iden-tity.
Specifically, quantization weight value is bigger, the corresponding use of transition activities of the page elements corresponding to the quantization weight value Family attention rate is bigger, and quantization weight value is less, then the corresponding use of transition activities of the page elements corresponding to the quantization weight value Family attention rate is less.User's attention rate is quantized value of the user to the degree of concern of the transition activities of page elements.User pays close attention to Degree can set according to priori, it is also possible to be obtained by big data statistical analysis.
Illustrate, user is to the change of movable participation number and insensitive, i.e. user's attention rate is less, then activity ginseng Relatively low quantization weight value can be just given with the change of number.And user is more sensitive to page block changes in distribution, that is, use Family attention rate is larger, then page block changes in distribution can just give higher quantization weight value.
In the present embodiment, the quantization weight value and corresponding user's attention rate positive correlation corresponding to transition activities, so When there is fewer number in the high transition activities of user's attention rate, it is possible to update cached the page as soon as possible, and work as user pass When the relatively low transition activities of note degree occur more number of times, can just update and cache the page so that having cached the page can meet use Family demand, and can cache page acceleration page access with effectively utilizes.
As shown in figure 8, in one embodiment, the caching renewal of the page request processing method also includes updating latest edition The step of page variable quantity accumulated value, specifically include following steps:
S802, obtains the transition activities of page elements corresponding with page iden-tity.
Specifically, server can connect page elements management system corresponding with page iden-tity, each page elements management system Unite for providing the page elements for constituting the latest edition page corresponding with page iden-tity.Server can active collection and page mark Know the transition activities of corresponding page elements, it is also possible to which the page corresponding with page iden-tity occurs in page elements management system Server is notified during the transition activities of element.
S804, inquires about quantization weight value corresponding with the transition activities for getting.
Specifically, server can store weight allocation list, and the weight allocation list includes each transition activities and quantization weight value Corresponding relation, server can inquire about quantization weight value corresponding with the transition activities for getting from the weight allocation list.
S806, by the quantization weight value for inquiring latest edition page variable quantity accumulation corresponding with page iden-tity is added to Value.
Specifically, server can read current latest edition page variable quantity accumulated value, the latest edition page that will be read Face variable quantity accumulated value adds up the latest edition page variable quantity accumulated value for obtaining updating after the quantization weight value for inquiring, and will The latest edition page variable quantity accumulated value of the renewal re-writes.
In the present embodiment, page variable quantity accumulated value has been cached can reflect exactly and cached the page that the page is experienced Element variation, and the significance level that page elements change can be reflected by corresponding quantization weight value.The latest edition page becomes Change amount accumulated value can exactly reflect the page elements change that the latest edition page is experienced, and by corresponding quantization weight Value can reflect the significance level that page elements change.So accumulated value difference can reflect the intensity of variation of details in page-out And significance level, such that it is able to more accurately control to cache the renewal of the page, can more efficiently using caching page Face accelerates page access.
Fig. 9 is the structured flowchart that Page handling device 900 is cached in one embodiment.With reference to Fig. 9, the caching page is processed Device 900 includes:Caching renewal of the page request sending module 901, receiver module 902 and caching update module 903.
Caching renewal of the page request sending module 901, carries page iden-tity and has delayed accordingly for sending to server Deposit page variable quantity accumulated value caching renewal of the page request so that server cached page variable quantity accumulated value and Latest edition page variable quantity accumulated value corresponding with page iden-tity.
Receiver module 902, feeds back most for the reception server when accumulated value difference is more than or equal to default positive threshold value The redaction page and latest edition page variable quantity accumulated value, accumulated value difference is for latest edition page variable quantity accumulated value and The difference of caching page variable quantity accumulated value.
Buffer update module 903, for the locally page that cached corresponding with page iden-tity to be updated to receive most The redaction page, and will cache the latest edition page variable quantity accumulated value that page variable quantity accumulated value is updated to receive.
In one embodiment, receiver module 902 is additionally operable to work as latest edition page variable quantity accumulated value and caching page When the accumulated value difference of face variable quantity accumulated value is less than positive threshold value is preset, not updating for the reception server feedback cache the page Notify.
Such as Figure 10, caching Page handling device 900 also includes display module 904, local for directly being shown according to notice It is corresponding with page iden-tity to have cached the page.
In one embodiment, it is that each page elements cached in the page are experienced that page variable quantity accumulated value has been cached Quantized value after transition activities quantify accumulates the accumulated value for obtaining.
Latest edition page variable quantity accumulated value is that each page elements in the latest edition page experience transition activities amount Quantized value after change accumulates the accumulated value for obtaining.
In one embodiment, transition activities be quantized according to maximum quantization weight value more than or equal to it is default just Threshold value;Transition activities be quantized according to minimum quantization weighted value less than preset positive threshold value.
In one embodiment, the quantization weight value corresponding to the transition activities of page elements corresponding with page iden-tity, And the user's attention rate positive correlation corresponding to the transition activities of page elements corresponding with page iden-tity.
Above-mentioned caching Page handling device 900, has cached page variable quantity accumulated value and can reflect and cached page institute Jing The all previous page change gone through, latest edition page variable quantity accumulated value can then reflect all previous page that the latest edition page is experienced Face changes.So latest edition page variable quantity accumulated value with cache the accumulated value difference of page variable quantity accumulated value, so that it may To reflect the latest edition page compared to the intensity of variation for caching the page so that the degree of page change can quantify.When When accumulated value difference is more than positive threshold value is preset, represent that the latest edition page reaches compared to the degree for caching page change default The degree that threshold value is reflected, now feed back the latest edition page so that compared to cache the page change reach it is a certain degree of The latest edition page can be fed back in time, can have been cached the page with effectively utilizes and accelerated page access.
Figure 11 is that the structured flowchart that processing meanss 1100 are asked in renewal of the page is cached in one embodiment.With reference to Figure 11, should Caching renewal of the page request processing meanss 1100 include:Receiver module 1101, the and of page variable quantity accumulated value acquisition module 1102 Latest edition page feedback module 1103.
Receiver module 1101, for order caching renewal of the page request.
Page variable quantity accumulated value acquisition module 1102, for according to caching renewal of the page acquisition request page iden-tity and phase The page variable quantity accumulated value of caching answered;Obtain latest edition page variable quantity accumulated value corresponding with page iden-tity;Delay It is to be changed to cache the page and experienced by the specified old version page corresponding with page iden-tity to deposit page variable quantity accumulated value Quantized value after page change quantifies accumulates the accumulated value for obtaining;Latest edition page variable quantity accumulated value be by with page mark Know the corresponding specified old version page change to the latest edition page experience the page change quantify after quantized value accumulated The accumulated value for obtaining.
Latest edition page feedback module 1103, for becoming with the page is cached when latest edition page variable quantity accumulated value The difference of change amount accumulated value more than or equal to preset positive threshold value when, feed back for update cached the page the latest edition page and For updating the latest edition page variable quantity accumulated value for having cached page variable quantity accumulated value.
As shown in figure 12, in one embodiment, caching renewal of the page request processing meanss 1100 also includes:Notify feedback Module 1104 is little with the accumulated value difference for caching page variable quantity accumulated value for working as latest edition page variable quantity accumulated value When positive threshold value is preset, the notice for having cached the page is not updated to the terminal feedback for initiating caching renewal of the page request so that eventually The direct displaying in end is corresponding with page iden-tity to have cached the page.
In one embodiment, caching renewal of the page request processing meanss 1100 also includes:Transition activities acquisition module 1105th, quantization weight value enquiry module 1106 and page variable quantity accumulation module 1107.
Transition activities acquisition module 1105, for obtaining the transition activities of page elements corresponding with page iden-tity.
Quantization weight value enquiry module 1106, the corresponding quantization weight value of the transition activities for inquiring about with get.
Page variable quantity accumulation module 1107, it is corresponding with page iden-tity for the quantization weight for inquiring value to be added to Latest edition page variable quantity accumulated value.
In one embodiment, it is that each page elements cached in the page are experienced that page variable quantity accumulated value has been cached The accumulated value that transition activities add up after being quantified according to the quantization weight value corresponding to respective page element.
It is dynamic that latest edition page variable quantity accumulated value is that each respective page element in the latest edition page experiences change The accumulated value that work adds up after being quantified according to the quantization weight value corresponding to respective page element.
In one embodiment, transition activities be quantized according to maximum quantization weight value more than or equal to it is default just Threshold value;Transition activities be quantized according to minimum quantization weighted value less than preset positive threshold value.
Processing meanss 1100 are asked in above-mentioned caching renewal of the page, page variable quantity accumulated value has been cached can reflect and cached The all previous page change that the page is experienced, latest edition page variable quantity accumulated value can then reflect that the latest edition page is experienced The all previous page change.So latest edition page variable quantity accumulated value with cache the accumulation value difference of page variable quantity accumulated value Value, it is possible to reflect the latest edition page compared to the intensity of variation for caching the page so that the degree of page change can be with Quantify.When accumulated value difference is more than positive threshold value is preset, represent the latest edition page compared to the degree for caching page change The degree that predetermined threshold value is reflected is reached, the latest edition page is now fed back so that one is reached compared to page change is cached Determining the latest edition page of degree can be fed back in time, can have been cached the page with effectively utilizes and accelerated page access.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, can be Related hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can read storage In medium, the program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, there is no lance in the combination of these technical characteristics Shield, is all considered to be the scope of this specification record.
Above example only expresses the several embodiments of the present invention, and its description is more concrete and detailed, but can not Therefore it is construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, On the premise of without departing from present inventive concept, some deformations and improvement can also be made, these belong to protection scope of the present invention. Therefore, the protection domain of patent of the present invention should be defined by claims.

Claims (20)

1. it is a kind of to cache page processing method, including:
The caching renewal of the page request for carrying page iden-tity and having cached page variable quantity accumulated value accordingly is sent to server, So that having cached page variable quantity accumulated value and latest edition corresponding with the page iden-tity described in the server acquisition Page variable quantity accumulated value;
The server is received in accumulated value difference more than or equal to the latest edition page that feeds back when presetting positive threshold value and described Latest edition page variable quantity accumulated value, the accumulated value difference be the latest edition page variable quantity accumulated value and it is described The difference of caching page variable quantity accumulated value;
The latest edition page that the page is updated to receive has been cached by locally corresponding with the page iden-tity, and by institute State and cache the latest edition page variable quantity accumulated value that page variable quantity accumulated value is updated to receive.
2. method according to claim 1, it is characterised in that methods described also includes:
When the latest edition page variable quantity accumulated value and the accumulated value difference for having cached page variable quantity accumulated value it is little When the default positive threshold value, receive the server feedback does not update the notice for caching the page;
According to it is described notify directly to show locally corresponding with the page iden-tity cached the page.
3. method according to claim 1, it is characterised in that the page variable quantity accumulated value that cached is described to delay Deposit each page elements in the page and experience transition activities and quantified according to the quantization weight value corresponding to respective page element The accumulated value for adding up afterwards;
The latest edition page variable quantity accumulated value is that each respective page element in the latest edition page experiences change The accumulated value that change action adds up after being quantified according to the quantization weight value corresponding to respective page element.
4. method according to claim 3, it is characterised in that the change of the page elements corresponding to the page iden-tity is moved Different grades are divided into, and are allocated the quantization weight value with affiliated rank adaptation;The quantization that different brackets is adapted to Weighted value is different.
5. the method according to claim 3 or 4, it is characterised in that the change of page elements corresponding with the page iden-tity Quantization weight value corresponding to change action, and the user corresponding to the transition activities of page elements corresponding with the page iden-tity Attention rate positive correlation.
6. it is a kind of to cache renewal of the page request processing method, including:
Order caching renewal of the page is asked;
Page variable quantity accumulated value is cached according to the caching renewal of the page acquisition request page iden-tity and accordingly;
Obtain latest edition page variable quantity accumulated value corresponding with the page iden-tity;
When the latest edition page variable quantity accumulated value is more than or waits with the difference for having cached page variable quantity accumulated value When positive threshold value is preset, feed back and cached the latest edition page of the page and for updating the caching page for renewal The latest edition page variable quantity accumulated value of face variable quantity accumulated value.
7. method according to claim 6, it is characterised in that methods described also includes:
When the latest edition page variable quantity accumulated value it is little with the accumulated value difference for having cached page variable quantity accumulated value When positive threshold value is preset, the notice for having cached the page is not updated to the terminal feedback for initiating the caching renewal of the page request, made The terminal directly shows and corresponding with the page iden-tity has cached the page.
8. method according to claim 6, it is characterised in that methods described also includes:
Obtain the transition activities of page elements corresponding with the page iden-tity;
Inquiry quantization weight value corresponding with the transition activities for getting;
The quantization weight value for inquiring is added to into latest edition page variable quantity accumulated value corresponding with the page iden-tity.
9. method according to claim 6, it is characterised in that the page variable quantity accumulated value that cached is described to delay Deposit each page elements in the page and experience transition activities and quantified according to the quantization weight value corresponding to respective page element The accumulated value for adding up afterwards;
The latest edition page variable quantity accumulated value is that each respective page element in the latest edition page experiences change The accumulated value that change action adds up after being quantified according to the quantization weight value corresponding to respective page element.
10. method according to claim 9, it is characterised in that the change of the page elements corresponding to the page iden-tity Action is divided into different grades, and is allocated the quantization weight value with affiliated rank adaptation;The amount that different brackets is adapted to Change weighted value different.
11. a kind of caching Page handling devices, it is characterised in that include:
Caching renewal of the page request sending module, becomes for sending to carry page iden-tity and cached the page accordingly to server The caching renewal of the page request of change amount accumulated value so that the server obtain described in cached page variable quantity accumulated value and Latest edition page variable quantity accumulated value corresponding with the page iden-tity;
Receiver module, for receiving the server in accumulated value difference more than or equal to the latest edition fed back when presetting positive threshold value This page and the latest edition page variable quantity accumulated value, the accumulated value difference is tired for the latest edition page variable quantity Product value and the difference for having cached page variable quantity accumulated value;
Buffer update module, for by locally it is corresponding with the page iden-tity cached the page be updated to receive described in most The redaction page, and the latest edition page variable quantity that page variable quantity accumulated value is updated to receive has been cached by described Accumulated value.
12. devices according to claim 11, it is characterised in that the receiver module is additionally operable to when the latest edition page When face variable quantity accumulated value and the accumulated value difference for having cached page variable quantity accumulated value are less than the default positive threshold value, connect That receives the server feedback does not update the notice for caching the page;
Display module, for according to it is described notify directly to show locally corresponding with the page iden-tity cached the page.
13. devices according to claim 11, it is characterised in that it is described cached page variable quantity accumulated value be it is described Each page elements in the caching page experience the quantized value after transition activities quantify and accumulate the accumulated value for obtaining;
It is dynamic that the latest edition page variable quantity accumulated value is that each page elements in the latest edition page experience change Quantized value after work quantifies accumulates the accumulated value for obtaining.
14. devices according to claim 13, it is characterised in that the change of the page elements corresponding to the page iden-tity Action is divided into different grades, and is allocated the quantization weight value with affiliated rank adaptation;The amount that different brackets is adapted to Change weighted value different.
15. devices according to claim 13 or 14, it is characterised in that page elements corresponding with the page iden-tity Quantization weight value corresponding to transition activities, and the use corresponding to the transition activities of page elements corresponding with the page iden-tity Family attention rate positive correlation.
16. a kind of caching renewal of the page request processing meanss, it is characterised in that include:
Receiver module, for order caching renewal of the page request;
Page variable quantity accumulated value acquisition module, for according to the caching renewal of the page acquisition request page iden-tity and accordingly Page variable quantity accumulated value has been cached;Obtain latest edition page variable quantity accumulated value corresponding with the page iden-tity;It is described It is to change to caching page by the specified old version page corresponding with the page iden-tity to have cached page variable quantity accumulated value Face experiences the quantized value after page change quantifies and accumulates the accumulated value for obtaining;The latest edition page variable quantity accumulated value It is to change to the latest edition page by the specified old version page corresponding with the page iden-tity to experience page change quantization Quantized value afterwards accumulates the accumulated value for obtaining;
Latest edition page feedback module, for becoming with the page that cached when the latest edition page variable quantity accumulated value When the difference of change amount accumulated value is more than or equal to positive threshold value is preset, feed back for updating the latest edition page for having cached the page Face and for updating the latest edition page variable quantity accumulated value for having cached page variable quantity accumulated value.
17. devices according to claim 16, it is characterised in that described device also includes:
Feedback module is notified, for having cached the accumulation of page variable quantity with described when the latest edition page variable quantity accumulated value When the accumulated value difference of value is less than positive threshold value is preset, does not update to the terminal feedback for initiating the caching renewal of the page request and delay Deposit the notice of the page so that the direct displaying of the terminal is corresponding with the page iden-tity to have cached the page.
18. devices according to claim 16, it is characterised in that described device also includes:
Transition activities acquisition module, for obtaining the transition activities of page elements corresponding with the page iden-tity;
Quantization weight value enquiry module, the corresponding quantization weight value of the transition activities for inquiring about with get;
Page variable quantity accumulation module, it is corresponding with the page iden-tity newest for the quantization weight for inquiring value to be added to Version page variable quantity accumulated value.
19. devices according to claim 16, it is characterised in that it is described cached page variable quantity accumulated value be it is described Each page elements in the caching page experience transition activities according to the quantization weight value amount of carrying out corresponding to respective page element The accumulated value added up after change;
The latest edition page variable quantity accumulated value is that each respective page element in the latest edition page experiences change The accumulated value that change action adds up after being quantified according to the quantization weight value corresponding to respective page element.
20. devices according to claim 19, it is characterised in that the change of the page elements corresponding to the page iden-tity Action is divided into different grades, and is allocated the quantization weight value with affiliated rank adaptation;The amount that different brackets is adapted to Change weighted value different.
CN201611110192.7A 2016-12-06 2016-12-06 Cache page processing method and device and cache page updating request processing method and device Active CN106599146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611110192.7A CN106599146B (en) 2016-12-06 2016-12-06 Cache page processing method and device and cache page updating request processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611110192.7A CN106599146B (en) 2016-12-06 2016-12-06 Cache page processing method and device and cache page updating request processing method and device

Publications (2)

Publication Number Publication Date
CN106599146A true CN106599146A (en) 2017-04-26
CN106599146B CN106599146B (en) 2021-05-25

Family

ID=58596623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611110192.7A Active CN106599146B (en) 2016-12-06 2016-12-06 Cache page processing method and device and cache page updating request processing method and device

Country Status (1)

Country Link
CN (1) CN106599146B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616564A (en) * 2018-03-08 2018-10-02 阿里巴巴集团控股有限公司 The acquisition methods and device of data in the page
CN108664217A (en) * 2018-04-04 2018-10-16 安徽大学 A kind of caching method and system reducing the shake of solid-state disc storaging system write performance
CN108984548A (en) * 2017-05-31 2018-12-11 腾讯科技(深圳)有限公司 Content of pages caching method and device
CN109491740A (en) * 2018-10-30 2019-03-19 北京云测信息技术有限公司 A kind of automatic multi version funnel page selection method based on context information
CN109582684A (en) * 2018-11-30 2019-04-05 深圳市盟天科技有限公司 A kind of update method of local cache data, device, server and storage medium
WO2019084753A1 (en) * 2017-10-31 2019-05-09 深圳市云中飞网络科技有限公司 Information processing method, storage medium, and mobile terminal
CN112100541A (en) * 2020-08-24 2020-12-18 浙江三维万易联科技有限公司 Website page element loading method and device, electronic device and storage medium
CN114995817A (en) * 2022-08-03 2022-09-02 杭州乾冠数字物联技术有限公司 Web page large-screen data processing method based on Vuex

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070266345A1 (en) * 2006-05-15 2007-11-15 Eastman Kodak Company Method for driving display with reduced aging
CN101382862A (en) * 2007-09-06 2009-03-11 诚研科技股份有限公司 Image browsing method and relevant image browsing apparatus thereof
CN101668042A (en) * 2009-09-10 2010-03-10 深圳市同洲电子股份有限公司 Method and device for updating local page of embedded communication system
CN101782913A (en) * 2009-06-23 2010-07-21 北京搜狗科技发展有限公司 Update notifying method and browser
CN102375830A (en) * 2010-08-13 2012-03-14 富士通株式会社 Webpage updating judging method and device as well as website synchronization method and device
CN102737125A (en) * 2012-06-15 2012-10-17 武汉大学 Web temporal object model-based outdated webpage information automatic discovering method
CN102955786A (en) * 2011-08-22 2013-03-06 北大方正集团有限公司 Method and system for caching and distributing dynamic webpage data
CN103885960A (en) * 2012-12-20 2014-06-25 上海明想电子科技有限公司 Method for monitoring webpage change
CN104794118A (en) * 2014-01-17 2015-07-22 腾讯科技(深圳)有限公司 Webpage information processing method, device and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070266345A1 (en) * 2006-05-15 2007-11-15 Eastman Kodak Company Method for driving display with reduced aging
CN101382862A (en) * 2007-09-06 2009-03-11 诚研科技股份有限公司 Image browsing method and relevant image browsing apparatus thereof
CN101782913A (en) * 2009-06-23 2010-07-21 北京搜狗科技发展有限公司 Update notifying method and browser
CN101668042A (en) * 2009-09-10 2010-03-10 深圳市同洲电子股份有限公司 Method and device for updating local page of embedded communication system
CN102375830A (en) * 2010-08-13 2012-03-14 富士通株式会社 Webpage updating judging method and device as well as website synchronization method and device
CN102955786A (en) * 2011-08-22 2013-03-06 北大方正集团有限公司 Method and system for caching and distributing dynamic webpage data
CN102737125A (en) * 2012-06-15 2012-10-17 武汉大学 Web temporal object model-based outdated webpage information automatic discovering method
CN103885960A (en) * 2012-12-20 2014-06-25 上海明想电子科技有限公司 Method for monitoring webpage change
CN104794118A (en) * 2014-01-17 2015-07-22 腾讯科技(深圳)有限公司 Webpage information processing method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨俊峰 等: "深层网站Ajax页面数据采集研究综述", 《计算机应用研究》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984548A (en) * 2017-05-31 2018-12-11 腾讯科技(深圳)有限公司 Content of pages caching method and device
CN110753914B (en) * 2017-10-31 2024-04-12 深圳市欢太科技有限公司 Information processing method, storage medium and mobile terminal
WO2019084753A1 (en) * 2017-10-31 2019-05-09 深圳市云中飞网络科技有限公司 Information processing method, storage medium, and mobile terminal
CN110753914A (en) * 2017-10-31 2020-02-04 深圳市欢太科技有限公司 Information processing method, storage medium and mobile terminal
CN108616564A (en) * 2018-03-08 2018-10-02 阿里巴巴集团控股有限公司 The acquisition methods and device of data in the page
CN108664217B (en) * 2018-04-04 2021-07-13 安徽大学 Caching method and system for reducing jitter of writing performance of solid-state disk storage system
CN108664217A (en) * 2018-04-04 2018-10-16 安徽大学 A kind of caching method and system reducing the shake of solid-state disc storaging system write performance
CN109491740A (en) * 2018-10-30 2019-03-19 北京云测信息技术有限公司 A kind of automatic multi version funnel page selection method based on context information
CN109491740B (en) * 2018-10-30 2021-09-10 北京云测信息技术有限公司 Automatic multi-version funnel page optimization method based on context background information
CN109582684B (en) * 2018-11-30 2021-11-09 深圳市乐信信息服务有限公司 Local cache data updating method and device, server and storage medium
CN109582684A (en) * 2018-11-30 2019-04-05 深圳市盟天科技有限公司 A kind of update method of local cache data, device, server and storage medium
CN112100541A (en) * 2020-08-24 2020-12-18 浙江三维万易联科技有限公司 Website page element loading method and device, electronic device and storage medium
CN112100541B (en) * 2020-08-24 2024-04-02 三维通信股份有限公司 Method and device for loading website page element, electronic device and storage medium
CN114995817A (en) * 2022-08-03 2022-09-02 杭州乾冠数字物联技术有限公司 Web page large-screen data processing method based on Vuex

Also Published As

Publication number Publication date
CN106599146B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN106599146A (en) Cache page processing method and device and cache page update request processing method and device
CN106911780B (en) Service ID generation method, device and system
CN111708964B (en) Recommendation method and device for multimedia resources, electronic equipment and storage medium
KR102300077B1 (en) Optimizing user interface data caching for future actions
CN109327550B (en) Access request distribution method and device, storage medium and computer equipment
CN111159436B (en) Method, device and computing equipment for recommending multimedia content
US20160231928A1 (en) Dynamic Storage Tiering Based on Performance SLAs
US20190121901A1 (en) Database Sharding
US20110225367A1 (en) Memory cache data center
US8972418B2 (en) Dynamic generation of relevant items
US8086804B2 (en) Method and system for optimizing processor performance by regulating issue of pre-fetches to hot cache sets
JP2018510441A (en) Method, monitoring server, and terminal for determining validity of distribution of promotion information
KR20150010574A (en) Eviction system, eviction method and computer-readable medium
CN103870553B (en) A kind of input resource supplying method and system
US11726917B2 (en) Method and apparatus for a page-local delta-based prefetcher
US20150100738A1 (en) Dynamically determining a translation lookaside buffer flush promotion threshold value
CN111966887A (en) Dynamic caching method and device, electronic equipment and storage medium
KR20160143026A (en) Apparatus and method for managing memory
Ghandeharizadeh et al. CAMP: A cost adaptive multi-queue eviction policy for key-value stores
CN110019290B (en) Recommendation method and device based on statistical prior
CN112631504A (en) Method and device for realizing local cache by using off-heap memory
GB2465773A (en) Data Storage and Access
CN112559194A (en) Application data processing method, device and equipment
CN102902735A (en) Search caching method and system for internet protocol television (IPTV)
CN111475224A (en) Object ranking method, device and equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant