CN110245307A - Page cache management method and system, terminal device and storage medium - Google Patents

Page cache management method and system, terminal device and storage medium Download PDF

Info

Publication number
CN110245307A
CN110245307A CN201910377053.8A CN201910377053A CN110245307A CN 110245307 A CN110245307 A CN 110245307A CN 201910377053 A CN201910377053 A CN 201910377053A CN 110245307 A CN110245307 A CN 110245307A
Authority
CN
China
Prior art keywords
configuration information
page
loaded
terminal device
url
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.)
Pending
Application number
CN201910377053.8A
Other languages
Chinese (zh)
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.)
Guangzhou Huya Information Technology Co Ltd
Original Assignee
Guangzhou Huya Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Information Technology Co Ltd filed Critical Guangzhou Huya Information Technology Co Ltd
Priority to CN201910377053.8A priority Critical patent/CN110245307A/en
Publication of CN110245307A publication Critical patent/CN110245307A/en
Pending legal-status Critical Current

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

Abstract

This application discloses a kind of page cache management method and systems, terminal device and storage medium.The page cache management method includes: the first configuration information that the page to be loaded is obtained from spatial cache;Second configuration information corresponding with the page to be loaded is obtained from server, and judges whether the first configuration information matches with the second configuration information;If it is not, being then the second configuration information by the first configuration information update of spatial cache.In this way, the problem of improving page load failure, the access speed of the page is improved.

Description

Page cache management method and system, terminal device and storage medium
Technical field
This application involves field of computer technology, set more particularly to a kind of page cache management method and system, terminal Standby and storage medium.
Background technique
When using browser browsing webpage, browser would generally cache the webpage browsed, such as Cookie Caching directly can obtain webpage from Cookie when guaranteeing to browse the webpage again, and no longer obtain web page resources from server. Reasonable page cache can allow the execution efficiency of the page to greatly improve, and can be improved webpage browsing efficiency.
Present inventor has found that in the prior art, the page of Cookie caching does not have in long-term R&D process Standby more new function is easy to appear the problem of page can not find after system upgrade or page link update.
Summary of the invention
The application improves the access speed of the page mainly solving the technical problems that the problem of how improving page load failure Degree.
In order to solve the above technical problems, the technical solution that the application uses is: providing a kind of page cache manager Method is used for terminal device, and terminal device is connect with server, and page cache management method includes: to be added from spatial cache acquisition Carry the first configuration information of the page;Second configuration information corresponding with the page to be loaded is obtained from server, and judges that first matches Whether confidence breath matches with the second configuration information;If it is not, being then second with confidence by the first configuration information update of spatial cache Breath.
In order to solve the above technical problems, the technical solution that the application uses is: a kind of terminal device is provided, with service Device connection, which includes processor and transceiver connected to the processor, processor be used to obtain from spatial cache to First configuration information of loading page, transceiver are used to obtain second configuration information corresponding with the page to be loaded from server, Processor is further used for judging whether the first configuration information matches with the second configuration information, if it is not, then by the of spatial cache One configuration information update is the second configuration information.
In order to solve the above technical problems, the technical solution that the application uses is: a kind of terminal device is provided, with service Device connection, the terminal device include processing module and the transceiver module that connect with processing module, and processing module is used for from caching sky Between obtain the first configuration information of the page to be loaded, transceiver module is used to obtain corresponding with the page to be loaded second from server Configuration information, processing module is further used for judging whether the first configuration information matches with the second configuration information, if it is not, will then delay The first configuration information update for depositing space is the second configuration information.
In order to solve the above technical problems, the technical solution that the application uses is: providing a kind of page cache management system System, the page cache management system include: terminal device and the server that connect with terminal device, and terminal device is for from caching Space obtains the first configuration information of the page to be loaded, and sends and request to server;Server be used for according to request with Corresponding second configuration information of the page to be loaded, and the second configuration information is fed back into terminal device;Terminal device is further used In judging whether the first configuration information matches with the second configuration information, if it is not, then by the first configuration information of spatial cache It is updated to the second configuration information.
In order to solve the above technical problems, the technical solution that the application uses is: providing a kind of storage medium, deposit thereon Program data is contained, program data can be performed to realize above-mentioned page cache management method.
The beneficial effect of the application is: being different from the prior art, the embodiment of the present application page cache management method, for eventually End equipment, terminal device are connect with server, which includes: to obtain the page to be loaded from spatial cache First configuration information;Second configuration information corresponding with the page to be loaded is obtained from server, and judges that the first configuration information is It is no to be matched with the second configuration information;If it is not, being then the second configuration information by the first configuration information update of spatial cache.Pass through this Kind of mode, the first configuration information of the to be loaded page of the embodiment of the present application in spatial cache in server this is to be loaded It is the second configuration information by the first configuration information update of spatial cache when second configuration information of the page mismatches, and according to Second configuration information loads the page to be loaded, so that the page to be loaded can be according to newest configuration information, i.e., the second configuration Information is loaded, to avoid the page to be loaded of server configuration information be updated after, because to be loaded in local cache The non-synchronized update of the configuration information of the page leads to problems such as to load failure to the page.Therefore, the embodiment of the present application can improve page The problem of face load failure, improve the access speed of the page.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of one embodiment of the application page cache management system;
Fig. 2 is the flow diagram of the application page cache management method first embodiment;
Fig. 3 is the idiographic flow schematic diagram of step S202 in Fig. 2 embodiment page cache management method;
Fig. 4 is the idiographic flow schematic diagram of step S203 in Fig. 2 embodiment page cache management method;
Fig. 5 is the flow diagram of the application page cache management method second embodiment;
Fig. 6 is the idiographic flow schematic diagram of step S505 in Fig. 5 embodiment page cache management method;
Fig. 7 is the flow diagram of the application page cache management method 3rd embodiment;
Fig. 8 is the structural schematic diagram of one embodiment of the application terminal device;
Fig. 9 is the structural schematic diagram of another embodiment of the application terminal device;
Figure 10 is the structural schematic diagram of one embodiment of the application page cache management system;
Figure 11 is the structural schematic diagram of one embodiment of the application storage medium.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment belongs to the range of the application protection.
In the prior art, when terminal device accesses website by browser, the caching of terminal device can be with small text file Memory page information, this small text file are known as Cookie.But the inventors of the present application found that page of Cookie caching Face does not have more new function, after system upgrade or page link update, is easy to appear the problem of page can not find.
To solve the above problems, the application proposes a kind of page cache management system first, as shown in Figure 1, Fig. 1 is this Shen Please one embodiment of page cache management system structural schematic diagram.The present embodiment page cache management system 101 is set including terminal Standby 102 and the server 103 that is connect with terminal device 102, wherein the connection type can be wireless connection.
Terminal device 102 is provided with browser (not shown) and local cache (not shown), and local cache is provided with caching Space;Terminal device 102 can receive touch operation of the user to the browser page to be loaded by touch screen (figure is not marked), and Control instruction corresponding with touch operation is generated, carries out page load etc. to control browser.Certainly, in other embodiments, Terminal device can also obtain operation of the user to browser interface by components such as physical buttons.
Server 103 can be arranged with multiple terminal devices 102 in one-to-many mode.Multiple 102 shared services of terminal The data resource of device 103.
The terminal device 102 of the present embodiment can be laptop, palm PC, personal digital assistant, portable matchmaker The mobile terminals such as body player, navigation device, wearable device, pedometer, and DTV, desktop computer etc. are solid Determine terminal.
The application is it is further proposed that a kind of page cache management method, as shown in Fig. 2, Fig. 2 is the application page cache pipe The flow diagram of reason method first embodiment.The present embodiment page cache management method is used for above-mentioned terminal device 102, this reality Apply a page cache management method the following steps are included:
Step S201: the first configuration information of the page to be loaded is obtained from spatial cache.
Terminal device 102 receives user to the access instruction of the browser page to be loaded, data more new command or system Upgrade command etc., and the first configuration information that the page to be loaded is obtained from the spatial cache of local cache is instructed according to these.
Optionally, the configuration information of the present embodiment includes URL uniform resource locator (Uniform Resource Locator, URL) and version number corresponding with URL.URL is position and the access side of the resource to that can obtain from internet The succinct expression of one kind of method, it is the address of standard resource on internet.Each file on internet have one it is unique URL, the information that it includes points out how the position of file and browser should handle it;URL is provided to the position of resource A kind of abstract recognition methods, and Resource orientation is given in this way;As long as can be to resource to Resource orientation, system Various operations are carried out, its attribute is such as accessed, updates, replaces and search.
The URL of the present embodiment includes at least mode (or agreement), server name (or IP address), path and file Name.Wherein, mode provides the mode of the browser file that processing will open;It can be also behind the title or IP address of server With a colon and a port number, the title or IP address of server can also include the contact necessary user's name of server And password;Path sections include the path definition of hierarchical organization, and inquiry part is generally used to transmit the database on server Carry out required parameter when dynamic is inquired.
The version number of the present embodiment adds one after the information of URL is updated.
Step S202: obtaining second configuration information corresponding with the page to be loaded from server 103, and judges the first configuration Whether information matches with the second configuration information.
First configuration information of the present embodiment includes the first URL and first version number corresponding with the first URL, the second configuration Information includes the 2nd URL and the second edition number corresponding with the 2nd URL.
Optionally, the present embodiment can realize above-mentioned steps S202 by method as shown in Figure 3.The method of the present embodiment Including step S301 to step S303.
Step S301: the first URL is obtained from the first configuration information.
Terminal device 102 obtains the first URL from the first configuration information.
Step S302: twoth URL corresponding with the first URL and the second edition number are obtained from server 103.
Specifically, the first URL is sent to server 103 by terminal device 102, server 103 inquires number according to the first URL According to more new record, if successful inquiring, then it is assumed that the first URL has been updated, and server 103 obtains update corresponding with the first URL Record, and URL corresponding with the first URL will be obtained as the 2nd URL according to the corresponding newest more new record of the first URL, and The second edition number corresponding with the 2nd URL is obtained, the 2nd URL and the second edition number are fed back to terminal device by server 103 102;If inquiry failure, then it is assumed that the first URL is not updated, and server 103 obtains URL corresponding with the first URL as the Two URL, and the second edition number corresponding with the 2nd URL is obtained, server 103 feeds back to the 2nd URL and the second edition number Terminal device 102.
Step S303: first version number is obtained from the first configuration information.
Terminal device 102 obtains first version number from the first configuration information.
Step S304: judge whether first version number is identical as the second edition number.
Terminal device 102 obtains first version number from the first configuration information, and judges first version number and the second edition It is number whether identical.If first version number is not identical as the second edition number, then it is assumed that the first of the page to be loaded is matched in spatial cache Confidence breath and the second configuration information of the page to be loaded in server 103 mismatch;If first version number and the second edition It is number identical, then it is assumed that the two matching.
Step S203: if the first configuration information and the second configuration information mismatch, match confidence for the first of spatial cache Breath is updated to the second configuration information.
If the second of the first configuration information of the page to be loaded and the page to be loaded in server 103 in spatial cache Configuration information mismatches, then it is assumed that the first configuration information of the page to be loaded on server 103 has been updated to second and has matched Confidence breath, therefore the first configuration information update of spatial cache is the second configuration information by terminal device 102, so that spatial cache In the page to be loaded configuration information be newest configuration information, avoid the configuration information of the page to be loaded of server 103 After being updated, because of the non-synchronized update of configuration information of the page to be loaded in local cache, causes to load to the page and unsuccessfully etc. ask Topic;If the first configuration information is matched with the second configuration information, then it is assumed that the first configuration information of the page to be loaded does not update, is not necessarily to Update the first configuration information of spatial cache.
Specifically, the first URL of spatial cache is updated to the 2nd URL by terminal device 102, and by the version with the first URL This number is updated to version number corresponding with the 2nd URL.
Optionally, the present embodiment can realize above-mentioned steps S203 by method as shown in Figure 4.The method of the present embodiment Step S401 is specifically included to step S402.
Step S401: the maximum second edition number is obtained from multiple second editions number.
With the continuous variation of user demand, the configuration information of the page to be loaded also can constantly be updated, every to update one Secondary, version number adds one, and therefore, the page to be loaded in server 103 has multiple version numbers, and maximum version number is corresponding Configuration information is newest configuration information.Terminal device 102 obtains the maximum second edition number from multiple second editions number.
Step S402: being the second configuration corresponding with the maximum second edition number by the first configuration information update of spatial cache Information.
Terminal device 102 matches the first configuration information update of spatial cache for corresponding with the maximum second edition number second Confidence breath.
Optionally, the spatial cache of the present embodiment terminal device 102 is provided with Indexed DB, and Indexed DB is browsing Device provides local data base, it can be created and be operated by page script;Indexed DB allows to store mass data, provides and looks into Look for interface, moreover it is possible to establish index;Indexed DB is a structuring in order to store considerable amount in terminal device 102 Data, and the application programming interfaces of index progress high-performance retrieval are used in these data.Indexed DB can distinguish Individual application programming interfaces are provided for synchronous and asynchronous access.
The Indexed DB of the present embodiment is the index of Indexed DB for caching the first configuration information, first version number Value.Specifically, in Indexed DB structure, first version number is the index value of the first URL, and terminal device 102 can pass through First version number searches the first URL as index.
Certainly, in other embodiments, Indexed DB can also be replaced using WebSQL DB etc..
It is different from the prior art, the first configuration information and server of the to be loaded page of the present embodiment in spatial cache In the page to be loaded the second configuration information mismatch when, by the first configuration information update of spatial cache be second configuration Information, and the page to be loaded is loaded according to the second configuration information so that the page to be loaded can according to newest configuration information, I.e. the second configuration information is loaded, to avoid the page to be loaded of server configuration information be updated after, because of local cache In the page to be loaded the non-synchronized update of configuration information, lead to problems such as to the page load failure.Therefore, the present embodiment can The problem of improving page load failure, improve the access speed of the page.
Further, the present embodiment uses Indexed DB to provide local data base for browser, can be improved data inspection Rope efficiency further increases page access efficiency.
The application it is further proposed that second embodiment page cache management method, be used for above-mentioned terminal device 102.Such as figure Shown in 5, the present embodiment page cache management method the following steps are included:
Step S501: the page address information of browser address bar is obtained.
The page address can be the complete or part URL information of the page to be loaded.
Step S502: the first URL and first version of the page to be loaded are obtained from spatial cache according to page address information Number.
Step S503: obtaining corresponding with the page to be loaded 2nd URL second edition number from server 103, and judges the Whether one version number is identical as the second edition number.
Step S504: if first version number is not identical as the second edition number, the first version number of spatial cache is updated For the second edition number, the first URL of spatial cache is updated to the 2nd URL.
Step S502 to step S504 is similar to step S203 with above-mentioned steps S201, does not repeat here.
Step S505: the page to be loaded is loaded according to the 2nd URL.
Optionally, the present embodiment can realize above-mentioned steps S505 by method as shown in FIG. 6.The method of the present embodiment Including step S601 to step S602.
Step S601: data resource corresponding with the 2nd URL is obtained from server 103.
Step S602: the page to be loaded is loaded according to data resource, and data resource is saved in spatial cache.
It, can be first to setting automatically when browser loads the page to be loaded corresponding with the 2nd URL for the first time in an application scenarios The parameter set is loaded, then to server 103 send HTTP request heading, request message head mainly include the 2nd URL, Receive the information such as coding convention and buffer control;After server 103 receives request message head, related service processing is carried out, then Http response message is fed back to browser;Browser interprets http response message, to obtain data resource, and data resource is led to It crosses the page and is shown to user, that is, load the page to be loaded, while data resource is saved in spatial cache;Browser loads again When the page to be loaded corresponding with the 2nd URL, browser directly reads data resource from spatial cache and loads the page to be loaded.
Step S506: if first version number is identical as the second edition number, the page to be loaded is loaded according to the first URL.
If whether first version number is identical as the second edition number, then it is assumed that the first URL does not update, then can direct basis First URL loads the page to be loaded.
It is different from the prior art, method through this embodiment can be when accessing the page to be loaded by browser, energy Configuration information after enough obtaining renewal of the page to be loaded, and the page to be loaded is loaded according to updated configuration information, it can keep away Exempt from the page to be loaded of server configuration information be updated after, because the configuration information of the page to be loaded in local cache is not same Step updates, and leads to problems such as to load failure to the page.Therefore, the present embodiment can improve the problem of page load failure, improve The access speed of the page.
The present embodiment, which is realized, is updated configuration information when treating loading page and accessing, certainly, following In embodiment, the update to configuration information can also be realized in system upgrade or server data renewal process.
As shown in fig. 7, Fig. 7 is the flow diagram of the application page cache management method 3rd embodiment, the present embodiment Page cache management method can be used for above-mentioned terminal device 102.The present embodiment page cache management method the following steps are included:
Step S701: the system upgrade instruction of monitoring terminal device 102.
System upgrade can be browser upgrading or operating system update of terminal device 102 etc..Terminal device 102 System upgrade will lead to the data in spatial cache and be updated.
Step S702: if monitoring, system upgrade is instructed, and obtain the page to be loaded from spatial cache first matches confidence Breath.
Step S703: obtaining second configuration information corresponding with the page to be loaded from server 103, and judges the first configuration Whether information matches with the second configuration information.
Step S704: if the first configuration information and the second configuration information mismatch, match confidence for the first of spatial cache Breath is updated to the second configuration information.
Step S702 to step S704 is similar to step S203 with above-mentioned steps S201, does not repeat here.
It is different from the prior art, method through this embodiment, can be obtained to be loaded in terminal device system upgrade Configuration information after renewal of the page, and the page to be loaded is loaded according to updated configuration information, can be avoided server to After the configuration information of loading page is updated, because of the non-synchronized update of configuration information of the page to be loaded in local cache, cause The problems such as loading failure to the page.Therefore, the present embodiment can improve the problem of page load failure, improve the access speed of the page Degree.
In other embodiments, whether terminal device can also periodically update to server inquiry page resource, or clothes Business device pushes the information such as updated page URL and version number to terminal device after page resource is updated.
The application is it is further proposed that a kind of terminal device, as shown in figure 8, Fig. 8 is one embodiment of the application terminal device Structural schematic diagram.The present embodiment terminal device 801 and server (not shown), terminal device 801 include processor 802 and with place The transceiver 803 that device 802 connects is managed, processor 802 is used to obtain the first configuration information of the page to be loaded from spatial cache, receives It sends out device 803 to be used to obtain second configuration information corresponding with the page to be loaded from server, processor 802 is further used for judging Whether the first configuration information matches with the second configuration information, if it is not, being then second by the first configuration information update of spatial cache Configuration information.
The method that the present embodiment terminal device 801 is also able to achieve above-described embodiment page cache management, the present embodiment terminal Equipment 801 is similar with examples detailed above terminal device 102, and structure and working principle does not repeat here.
It is different from the prior art, after the present embodiment avoids the configuration information of the page to be loaded of server from being updated, Yin Ben The non-synchronized update of configuration information of the page to be loaded in ground caching leads to problems such as to load failure to the page.Therefore, Neng Gougai The problem of kind page load failure, improve the access speed of the page.
The application is it is further proposed that a kind of terminal device, as shown in figure 9, Fig. 9 is another embodiment of the application terminal device Structural schematic diagram.The present embodiment terminal device 901 is connect with server (not shown), and terminal device 901 includes processing module 902 and the transceiver module 903 that is connect with processing module 902, processing module 902 be used to obtain the page to be loaded from spatial cache First configuration information, transceiver module 903 are used to obtain second configuration information corresponding with the page to be loaded from server, handle mould Block 902 is further used for judging whether the first configuration information matches with the second configuration information, if it is not, then by the first of spatial cache Configuration information update is the second configuration information.
The method that the present embodiment terminal device 901 is also able to achieve above-described embodiment page cache management, the present embodiment terminal Equipment 901 is similar with examples detailed above terminal device 102, and structure and working principle does not repeat here.
It is different from the prior art, after the present embodiment avoids the configuration information of the page to be loaded of server from being updated, Yin Ben The non-synchronized update of configuration information of the page to be loaded in ground caching leads to problems such as to load failure to the page.Therefore, Neng Gougai The problem of kind page load failure, improve the access speed of the page.
The application is it is further proposed that a kind of page cache management system, as shown in Figure 10, the present embodiment page cache management System 1001 includes: terminal device 1002 and the server connecting with terminal device 1,002 1003, terminal device 1002 be used for from Spatial cache obtains the first configuration information of the page to be loaded, and sends and request to server 1003;Server 1003 is used for root According to request second configuration information corresponding with the page to be loaded, and the second configuration information is fed back into terminal device 1002; Terminal device 1002 is further used for judging whether the first configuration information matches with the second configuration information, if it is not, will then delay The first configuration information update for depositing space is the second configuration information.
The method that the present embodiment terminal device 1002 is also able to achieve above-described embodiment page cache management, the present embodiment terminal Equipment 1002 is similar with examples detailed above terminal device 102, and structure and working principle does not repeat here.
It is different from the prior art, after the present embodiment avoids the configuration information of the page to be loaded of server from being updated, Yin Ben The non-synchronized update of configuration information of the page to be loaded in ground caching leads to problems such as to load failure to the page.Therefore, Neng Gougai The problem of kind page load failure, improve the access speed of the page.
The application is it is further proposed that a kind of storage medium, as shown in figure 11, Figure 11 are one embodiments of the application storage medium Structural schematic diagram.The present embodiment storage medium 1101 is used to store the related data 1102 and program data of above-described embodiment 1103, wherein related data 1102 includes at least above-mentioned configuration information etc., and program data 1103 can be performed in the above way The page cache management method of embodiment.Related data 1102 and program data 1103 carry out in above method embodiment Detailed narration, does not repeat here.
It is soft that the present embodiment storage medium 1101 can be, but not limited to, USB flash disk, SD card, PD CD-ROM drive, mobile hard disk, large capacity Drive, flash memory, multimedia memory card, server etc..
It is different from the prior art, the embodiment of the present application page cache management method, is used for terminal device, terminal device and clothes Business device connection, which includes: the first configuration information that the page to be loaded is obtained from spatial cache;From service Device obtains corresponding with the page to be loaded second configuration information, and judge the first configuration information whether with the second configuration information Match;If it is not, being then the second configuration information by the first configuration information update of spatial cache.In this way, the application is implemented First configuration information of the to be loaded page of the example in spatial cache and second of the page to be loaded in server match confidence It is the second configuration information by the first configuration information update of spatial cache, and loaded according to the second configuration information when breath mismatches The page to be loaded, so that the page to be loaded can be according to newest configuration information, i.e. the second configuration information is loaded, to keep away Exempt from the page to be loaded of server configuration information be updated after, because the configuration information of the page to be loaded in local cache is not same Step updates, and leads to problems such as to load failure to the page.Therefore, the embodiment of the present application can improve the problem of page load failure, Improve the access speed of the page.
If in addition, above-mentioned function realized in the form of software function and as stand-alone product when selling or using, can deposit Storage is in a mobile terminal read/write memory medium, that is, and the application also provides a kind of storage device for being stored with program data, The method that described program data can be performed to realize above-described embodiment, the storage device can be for such as USB flash disk, CD, services Device etc..That is, the application can be embodied in the form of software products comprising some instructions are used so that an intelligence Energy terminal executes all or part of the steps of each embodiment the method.
In the description of the present application, reference term " one embodiment ", " some embodiments ", " example ", " specific example ", Or the description of " some examples " etc. means particular features, structures, materials, or characteristics packet described in conjunction with this embodiment or example In at least one embodiment or example contained in the application.In the present specification, schematic expression of the above terms are necessarily It is directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be at any one Or it can be combined in any suitable manner in multiple embodiment or examples.In addition, without conflicting with each other, those skilled in the art Member the feature of different embodiments or examples described in this specification and different embodiments or examples can be combined and Combination.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (can be personal computer, server, the network equipment or other can be from instruction execution System, device or equipment instruction fetch and the system executed instruction) it uses, or combine these instruction execution systems, device or equipment And it uses.For the purpose of this specification, " computer-readable medium " can be it is any may include, store, communicate, propagate, or transport Program is for instruction execution system, device or equipment or the device used in conjunction with these instruction execution systems, device or equipment. The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electrical connection of one or more wirings Portion's (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM) can It wipes editable read-only memory (EPROM or flash memory), fiber device and portable optic disk read-only storage (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other suitable Jie Matter, because can then be edited, be interpreted or when necessary with other for example by carrying out optical scanner to paper or other media Suitable method is handled electronically to obtain described program, is then stored in computer storage.
The foregoing is merely presently filed embodiments, are not intended to limit the scope of the patents of the application, all to utilize this Equivalent structure or equivalent flow shift made by application specification and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field similarly includes in the scope of patent protection of the application.

Claims (10)

1. a kind of page cache management method, which is characterized in that it is used for terminal device, the terminal device is connect with server, The page cache management method includes:
The first configuration information of the page to be loaded is obtained from spatial cache;
Second configuration information corresponding with the page to be loaded is obtained from the server, and judges first configuration information Whether matched with second configuration information;
If it is not, being then second configuration information by the first configuration information update of the spatial cache.
2. page cache management method according to claim 1, which is characterized in that first configuration information includes first URL and first version number corresponding with the first URL, second configuration information include the 2nd URL and with the 2nd URL The corresponding second edition number, described the step of obtaining second configuration information corresponding with the page to be loaded from the server Include:
The first URL is obtained from first configuration information;
Twoth URL corresponding with the first URL and the second edition number are obtained from the server;
It is described to judge that the step of whether first configuration information matches with second configuration information includes:
The first version number is obtained from first configuration information;
Judge whether the first version number is identical as the second edition number.
3. page cache management method according to claim 2, which is characterized in that described by the first of the spatial cache Configuration information update be second configuration information the step of include:
First URL of the spatial cache is updated to the 2nd URL, and will be updated to the version number of the first URL Version number corresponding with the 2nd URL.
4. page cache management method according to claim 2, which is characterized in that the page cache management method is into one Step includes:
The page to be loaded is loaded according to the 2nd URL.
5. page cache management method according to claim 2, which is characterized in that described to be added from spatial cache acquisition Before the step of carrying the first configuration information of the page, the page cache management method further comprises:
Monitor the upgrade command of the terminal device;
If monitoring the upgrade command, the step of first configuration information that the page to be loaded is obtained from spatial cache is executed Suddenly.
6. page cache management method according to claim 2, which is characterized in that the spatial cache is provided with Indexed DB, the Indexed DB are the Indexed for caching first configuration information, the first version number The index value of DB.
7. a kind of terminal device, which is characterized in that connect with server, the terminal device include processor and with the processing The transceiver of device connection, the processor are used to obtain the first configuration information of the page to be loaded, the transmitting-receiving from spatial cache Device is used to obtain second configuration information corresponding with the page to be loaded from the server, and the processor is further used for Judge whether first configuration information matches with second configuration information, if it is not, then matching the first of the spatial cache Confidence breath is updated to second configuration information.
8. a kind of terminal device, which is characterized in that connect with server, the terminal device include processing module and with the place The transceiver module of module connection is managed, the processing module is used to obtain the first configuration information of the page to be loaded from spatial cache, The transceiver module is used to obtain second configuration information corresponding with the page to be loaded, the processing mould from the server Block is further used for judging whether first configuration information matches with second configuration information, if it is not, then by the caching First configuration information update in space is second configuration information.
9. a kind of page cache management system, which is characterized in that the page cache management system include: terminal device and with institute The server of terminal device connection is stated, the terminal device matches confidence for obtaining the first of the page to be loaded from spatial cache Breath, and send and request to the server;The server is used for corresponding with the page to be loaded according to the request The second configuration information, and second configuration information is fed back into the terminal device;The terminal device is further used for Judge whether first configuration information matches with second configuration information, if it is not, then by the of the spatial cache One configuration information update is second configuration information.
10. a kind of storage medium, which is characterized in that be stored thereon with program data, described program data can be performed with reality Existing page cache management method described in any one of claims 1-6.
CN201910377053.8A 2019-05-07 2019-05-07 Page cache management method and system, terminal device and storage medium Pending CN110245307A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910377053.8A CN110245307A (en) 2019-05-07 2019-05-07 Page cache management method and system, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910377053.8A CN110245307A (en) 2019-05-07 2019-05-07 Page cache management method and system, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN110245307A true CN110245307A (en) 2019-09-17

Family

ID=67883800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910377053.8A Pending CN110245307A (en) 2019-05-07 2019-05-07 Page cache management method and system, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN110245307A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111769965A (en) * 2019-10-12 2020-10-13 北京京东尚科信息技术有限公司 Information processing method, device and equipment
CN112632159A (en) * 2020-12-01 2021-04-09 腾讯科技(深圳)有限公司 Database access control method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073494A (en) * 2010-12-30 2011-05-25 用友软件股份有限公司 Method and device for managing cache data
CN102819554A (en) * 2012-06-26 2012-12-12 北京奇虎科技有限公司 Favorite data processing method and device and server
US20140351807A1 (en) * 2013-05-24 2014-11-27 Huawei Device Co., Ltd. Method and communication device for updating web application
CN106557584A (en) * 2016-11-29 2017-04-05 青岛海信移动通信技术股份有限公司 A kind of web site collection method and device
CN107301051A (en) * 2017-06-27 2017-10-27 深圳市金立通信设备有限公司 The caching of terminal dynamic data and exchange method, terminal, system and computer-readable recording medium
CN107463613A (en) * 2017-06-29 2017-12-12 北京五八信息技术有限公司 Page loading method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073494A (en) * 2010-12-30 2011-05-25 用友软件股份有限公司 Method and device for managing cache data
CN102819554A (en) * 2012-06-26 2012-12-12 北京奇虎科技有限公司 Favorite data processing method and device and server
US20140351807A1 (en) * 2013-05-24 2014-11-27 Huawei Device Co., Ltd. Method and communication device for updating web application
CN106557584A (en) * 2016-11-29 2017-04-05 青岛海信移动通信技术股份有限公司 A kind of web site collection method and device
CN107301051A (en) * 2017-06-27 2017-10-27 深圳市金立通信设备有限公司 The caching of terminal dynamic data and exchange method, terminal, system and computer-readable recording medium
CN107463613A (en) * 2017-06-29 2017-12-12 北京五八信息技术有限公司 Page loading method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111769965A (en) * 2019-10-12 2020-10-13 北京京东尚科信息技术有限公司 Information processing method, device and equipment
CN112632159A (en) * 2020-12-01 2021-04-09 腾讯科技(深圳)有限公司 Database access control method and device, electronic equipment and storage medium
CN112632159B (en) * 2020-12-01 2021-09-28 腾讯科技(深圳)有限公司 Database access control method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10785322B2 (en) Server side data cache system
US9426200B2 (en) Updating dynamic content in cached resources
US8676880B2 (en) Server apparatus, communication apparatus, and method for generating navigation information
US8732252B2 (en) Cooperating system, chat server, program, and cooperating method
US20130227047A1 (en) Methods for managing content stored in cloud-based storages
US11546440B2 (en) Systems and methods for tracking sharing of web content
KR20160135250A (en) Prefetching application data for periods of disconnectivity
CN104202360A (en) Webpage access method, device and router
CN101471847A (en) Technique for previously providing estimate of time required for processing
CN104516974B (en) A kind of management method and device of file system directories item
CN103051706A (en) Dynamic webpage request processing system and method for dynamic website
EP3161662B1 (en) Optimized browser render process
CN104077310A (en) Method, equipment and system for loading resource file
WO2014150764A1 (en) Determining appropriate browsing applications for selected network resources
CN102413151A (en) Network resource sharing method and system
CN107463657B (en) File operation method and terminal
WO2014034001A1 (en) Web content prefetch control device, web content prefetch control program, and web content prefetch control method
US8352442B2 (en) Determination of an updated data source from disparate data sources
CN108256014A (en) Page display method and device
CN110245307A (en) Page cache management method and system, terminal device and storage medium
US20090319519A1 (en) Communication system, communication device, and computer program
US10021210B1 (en) Providing faster data access using multiple caching servers
US9306884B2 (en) Computer-based method and system for processing a file request in response to a message received from a user mobile device
JP6217075B2 (en) Distribution method, distribution apparatus, and distribution program
JP5280349B2 (en) Web page providing method using cache, system, and computer-readable recording 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190917