CN105447037A - Caching clearing method and device - Google Patents

Caching clearing method and device Download PDF

Info

Publication number
CN105447037A
CN105447037A CN201410437201.8A CN201410437201A CN105447037A CN 105447037 A CN105447037 A CN 105447037A CN 201410437201 A CN201410437201 A CN 201410437201A CN 105447037 A CN105447037 A CN 105447037A
Authority
CN
China
Prior art keywords
cache file
cache
buffer memory
information
caching record
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
CN201410437201.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.)
Ucweb Inc
Original Assignee
Ucweb Inc
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 Ucweb Inc filed Critical Ucweb Inc
Priority to CN201410437201.8A priority Critical patent/CN105447037A/en
Publication of CN105447037A publication Critical patent/CN105447037A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a caching clearing method and device. The method comprises the following steps: when a browser starts loading or loading continuously runs for a first preset time, the browser clears caching records in a caching database, and provides information of caching files corresponding to the cleared caching records for a background thread; and the background thread deletes the caching files corresponding to the caching records according to the information of the cleared caching files. Through adoption of the caching clearing method and device provided by the invention, the caching utilization ratio can be increased, and a user's storage space can be saved; and the cache is cleared through an improved caching file deletion algorithm, so that the CPU occupancy time can be shortened, the standstill phenomenon when a user browses a webpage can be avoided, and the user's web experience is improved.

Description

Remove method and the device of buffer memory
Technical field
The present invention relates to mobile internet technical field, more specifically, relate to a kind of method and the device of removing buffer memory.
Background technology
In order to improve the speed of accessed web page, the method that terminal browser can adopt accumulating to accelerate, the web page contents of once accessing (comprising picture and cookie file etc.) is stored in terminal buffers, later when each access websites, browser first can search terminal buffer memory, if there has been the content of accessing in buffer memory, that browser just need not be downloaded from the Internet, and directly recall from buffer memory, thus improve the speed of access websites.
But the buffer memory that generation browsed by browser is all generally that user initiatively removes, because a lot of resources of buffer memory can not be utilized again, if user does not initiatively remove buffer memory, the resource of buffer memory will remain in terminal always, and owing to there is a lot of Trash cache, thus cause the waste of user terminal storage space, also affect the utilization factor of buffer memory.Especially for the mobile terminal that terminal storage space is limited, this waste can badly influence the data processing speed of mobile terminal, thus the application having influence on terminal user is experienced.
Summary of the invention
In view of the above problems, the object of this invention is to provide a kind of method and the device of removing buffer memory, to take up room excessive, that Buffer Utilization is not high problem to solve buffer memory.
The method of removing buffer memory provided by the invention, comprising:
When browser start-up loading or when moving to the first Preset Time continuously after loading, the caching record in cache database removed by browser, and provides the information removing cache file to background thread; Wherein, cache file is corresponding with caching record;
Background thread, according to the information removing cache file, deletes the cache file corresponding with caching record.
The device of removing buffer memory provided by the invention, comprising:
Caching record clearing cell, for when browser start-up loading or when moving to the first Preset Time continuously after loading, removes the caching record in cache database;
Information provider unit, for providing the information removing cache file to background thread; Wherein, cache file is corresponding with caching record;
Cache file delete cells, for according to the information removing cache file, deletes the cache file corresponding with caching record.
Device end provided by the invention, comprises the device of storer for memory buffers file and aforesaid removing buffer memory.
Utilize the above-mentioned method according to removing buffer memory provided by the invention and device, by when browser start-up loading or when moving to the first Preset Time continuously after loading, the caching record in cache database removed automatically by browser, and provide the information removing cache file to make background thread delete corresponding cache file to background thread, this makes it possible to when browser loads or run the buffer memory automatically removing browser generation when exceeding Preset Time continuously, improve Buffer Utilization, save the storage space of user.
When removing buffer memory, buffer memory is removed according to the cache file deletion algorithm improved, namely determine to delete each cache file institute interlude in cache file list to be deleted according to the erasing time ratio preset, according to each cache file deleted in the described cache file list to be deleted of each cache file institute interlude deletion, the time taking CPU can be reduced like this, there will not be Caton phenomenon when user browses webpage, improve user and to surf the Net experience.
In order to realize above-mentioned and relevant object, will describe in detail and the feature particularly pointed out in the claims after one or more aspect of the present invention comprises.Explanation below and accompanying drawing describe some illustrative aspects of the present invention in detail.But what these aspects indicated is only some modes that can use in the various modes of principle of the present invention.In addition, the present invention is intended to comprise all these aspects and their equivalent.
Accompanying drawing explanation
By reference to the content below in conjunction with the description of the drawings and claims, and understand more comprehensively along with to of the present invention, other object of the present invention and result will be understood and easy to understand more.In the accompanying drawings:
Fig. 1 is the schematic flow sheet of the method for automatic removing buffer memory according to the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of cache file deletion algorithm in the method according to the automatic removing buffer memory of the embodiment of the present invention;
Design sketch after Fig. 3 a and Fig. 3 b is respectively the design sketch after according to the automatic removing browser rs cache of the embodiment of the present invention and utilizes cache file deletion algorithm to optimize;
Fig. 4 is the schematic flow sheet initiatively removing the method for buffer memory according to the embodiment of the present invention;
Fig. 5 is the logical organization block diagram of the device of automatic removing buffer memory according to the embodiment of the present invention;
Fig. 6 is the logical organization block diagram initiatively removing the device of buffer memory according to the embodiment of the present invention;
Fig. 7 is the logical organization block diagram of the device end according to the embodiment of the present invention;
Fig. 8 is the logical organization block diagram of another device end according to the embodiment of the present invention.
Label identical in all of the figs indicates similar or corresponding feature or function.
Embodiment
In the following description, for purposes of illustration, in order to provide the complete understanding to one or more embodiment, many details have been set forth.But, clearly, also these embodiments can be realized when there is no these details.In other example, one or more embodiment for convenience of description, known structure and equipment illustrate in block form an.
Below with reference to accompanying drawing, specific embodiments of the invention are described in detail.
Existing buffer memory sweep-out method achieves the function that user initiatively removes buffer memory, but not for user realizes the function automatically removing buffer memory, therefore the present invention proposes a kind of technical scheme of automatic removing browser rs cache, must not be the problem that user removes browser rs cache automatically with solution.In addition, in prior art when terminal user initiatively removes buffer memory, terminal system can delete all cache files successively, the process of deleting is carried out continuously, likely takies system CPU for a long time, and the CPU time that now system assignment browses the thread of webpage to user tails off, when user browses webpage, be easy to cause page card to pause, even cause application program without response, reduce the viewing experience of terminal user.The further improvement project of the present invention, makes, when removing buffer memory, to remove buffer memory, can reduce the time taking CPU, there will not be Caton phenomenon when user browses webpage according to the cache file deletion algorithm improved, improves user and to surf the Net experience.
First, conveniently understand buffer memory sweep-out method hereinafter, the structure of buffer memory is described, in the buffer, a resource comprises a url mark, each resource is a corresponding caching record in cache database, and this caching record have recorded the head response information of resource, such as url, resource size, resource type, expired time, service time last time etc.Each resource corresponds to a cache file on terminal disk, and this cache file stores the actual content of resource, and cache database stores in the terminal.
Fig. 1 shows the flow process of the method for the automatic removing buffer memory according to the embodiment of the present invention.
As shown in Figure 1, the method for the automatic removing buffer memory that the embodiment of the present invention provides, comprising:
Step S101: when browser start-up loading or when moving to the first Preset Time continuously after loading, the caching record in cache database removed by browser, and provides the information removing cache file to background thread; Wherein, described cache file is corresponding with described caching record.
The first Preset Time mentioned in step S101 is preferably and is preset as 12 hours, and namely browser execution was more than 12 hours, automatically removes a buffer memory, also can be preset as At All Other Times.Automatic removing buffer memory is for removing useless buffer memory, and can clear all useless buffer memory, and also can only remove the useless buffer memory of part, buffer memory comprises two parts, and a part is caching record, and another part is cache file corresponding to caching record.
Automatically removing in buffer memory, caching record comprises the resource that arrives useless and the expired resource without ETag and Last_Modified header field in stipulated time section.
The statistics display of being collected by reality, the resource accounting of service time last time in two weeks of buffer memory is more than 98%, namely the resource of buffer memory is all used in two weeks substantially, and untapped resource can not be used substantially again in two weeks, can clean out as waste resources, therefore, be two weeks in the above-mentioned stipulated time section priority discipline mentioned, also may be prescribed as section At All Other Times.
In addition, ETag and Last_Modified is the response header field of HTTP, and some resources have, some resources do not have, for expired resource, if do not have ETag and Last_Modified header field, this expired resource can not be utilized completely again, is regarded waste resources and disposes; If expired resource has ETag and Last_Modified header field, browser can provide conditional request to Website server, if according to Etag or last_modified header field, Website server judges that expired resource is not changed, then Website server can not return new resources to browser, browser can continue the copy utilizing buffer memory, thus saves flow.
The method of the automatic removing buffer memory that the embodiment of the present invention provides can remove buffer memory automatically when browser loads, and browser may be long-term at running background after loading, the resource cannot disposed overdue resources when browser loads in time and not use for a long time, so need to run continuously more than the resource automatically disposing overdue resources during the first Preset Time and do not use for a long time at browser.
Because each resource can be recorded service time last time in caching record, therefore according to judging whether certain resource was used in two weeks service time last time in caching record.
Because each resource also records expired time in caching record, judge that whether resource is expired according to the expired time in caching record, this resource can utilize the copy of buffer memory before expired time, if resource exceedes the expired time of record, the copy of buffer memory can not be utilized, need again from Website server Gains resources.
When the caching record in cache database removed by browser or after removing caching record, background thread provides removes cache file corresponding to caching record.
Wherein, the information removing cache file comprises the information removing residual cache file and the information removing cache file to be deleted, due to the cache file that do not remove when may exist and clear up buffer memory last time or cache file to be deleted, so send the information removing cache file all first can provide the information removing residual cache file at every turn, reoffer the information removing file to be deleted.
Step S102: background thread, according to the information removing cache file, deletes the cache file corresponding with caching record.
Background thread deletes cache file after the information receiving the removing cache file that browser provides, the thread high due to the priority of system is generally used for foregrounding, CPU can be taken in a large number for removing cache file, the online affecting user is experienced, so preferably adopt the low background thread of priority to delete cache file.
Long owing to deleting cache file elapsed time, in order to the online improving user is further experienced, avoid the phenomenon causing user's card of surfing Internet to pause when deleting cache file, before deletion cache file, rename is carried out to the catalogue at cache file place, delete the cache file under rename directory afterwards again, catalogue rename is equivalent to the operation of deleting cache file is put into backstage and slowly carries out, do not affect the foregrounding of high priority thread.
The flow process of existing cache file deletion algorithm is: first, obtain cache file list to be deleted, each cache file is deleted in circulation, after deleting a cache file, judge consuming timely whether be greater than 3 seconds, if so, then abdicate CPU and provide a piece of news to background thread as deleted thread, deletion thread obtains message can be continued to perform deletion action.But abdicate this step of CPU in some situations not play a role, cause this delete procedure meeting last for several seconds even more than 10 seconds, cause application program without response.
For foregoing problems, the present invention proposes a kind of cache file deletion algorithm of optimization, Fig. 2 shows the flow process of cache file deletion algorithm in the method according to the automatic removing buffer memory of the embodiment of the present invention, as shown in Figure 2, the flow process of cache file deletion algorithm in the method for the automatic removing buffer memory of the embodiment of the present invention, comprising:
Step S201: obtain initialization erasing time ratio after cache file list to be deleted.
Cache file list is the list of cache file name to be deleted, such as [file1, file2, file3, file4....], wherein, file1, file2 .... be filename, deleting in the process of each cache file according to cache file list to be deleted circulation, actual is delete each cache file according to cache file name.
The object defining erasing time ratio is that the time making to take when deleting cache file CPU is no more than 20%, and according to the display of actual tests data, if program nothing response in 250 milliseconds, user will feel that card pauses.So erasing time ratio is set to 20% by our definition, represent in units of one second, the time taking CPU is no more than 200 milliseconds.
Step S202: judged whether cache file to be deleted; If had, perform step S203; If no, perform step S206.
Step S203: delete a cache file after initialization time.
The object of initialization time is to record current time, for subsequent step is prepared.
Step S204: calculate the time of deleting this cache file, deleting next cache file according to the time and erasing time of deleting this cache file than calculating needs interlude.
The algorithm of time in counting period is as follows:
Wherein, elapse represents the time of a deletion cache file, remove_ratio represents that the operation of deleting cache file can take the time of CPU (in units of 1000 milliseconds, such as remove_ratio is 200, represent in 1000 milliseconds, the operable CPU time of deleted file is 200 milliseconds), sleep represents that deleting next cache file needs interlude.
Step S205: within interval time, abdicates CPU, after interval time, returns step S202.
After abdicating CPU, CPU can carry out other work, after interval time, rejudge and whether have cache file to be deleted, if had, delete cache file, step S202 to step S205 is the process of a circulation, each cache file is deleted in circulation, and after deletion cache file, recalculate the next cache file of deletion needs interlude, according to deleting next cache file interval time.
Step S206: terminate.
Utilize the cache file deletion algorithm after above-mentioned optimization, make deletion cache file take the time controling of CPU in 20%, the phenomenon producing when user surfs the Net and block and time can be reduced.
Effect after Fig. 3 a and Fig. 3 b respectively illustrates the automatic removing browser rs cache of the embodiment of the present invention and the effect after utilizing cache file deletion algorithm to optimize, as shown in Figure 3 a, dotted line be automatically remove caching function line on data, solid line is data on the line without automatic removing caching function, by without Automatic clearance function and have Data Comparison on the line of Automatic clearance function known, when ensureing that cache hit rate is constant, total cache size drops to below original half.
Fig. 3 b deletes more than 3530 real cache file on same browser, amount to the iowaittime curve (being obtained by vmstat) during 97M, in fig 3b, dotted line is utilizing the CPU of the cache file deletion algorithm after optimizing to wait for the IO deadline, solid line is the CPU wait IO deadline of the cache file deletion algorithm before optimizing, after optimization cache file deletion algorithm, iowaittime curve major part, below 20%, greatly reduces the probability that user's card of surfing Internet pauses.
Above-mentioned steps describes the method for the automatic removing buffer memory of the embodiment of the present invention in detail, achieve the function for user's Automatic clearance buffer memory, and deletion cache file algorithm aspect is improved, solve the problem causing user's card of surfing Internet to pause when deleting cache file, the deletion cache file algorithm of above-mentioned improvement can not only be applied in the method automatically removing buffer memory, can also be applied to and initiatively remove in the method for buffer memory, for the method initiatively removing buffer memory makes improvement, be described in detail to the method initiatively removing buffer memory improved below.
For the method initiatively removing buffer memory, mainly improve from deletion cache file algorithm aspect, Fig. 4 shows the flow process initiatively removing the method for buffer memory of the embodiment of the present invention.As shown in Figure 4, the flow process initiatively removing the method for buffer memory of the embodiment of the present invention, comprising:
Step S401: when browser start-up loading or load after, browser judges whether to receive the order of initiatively removing cache file; If so, step S402 is performed; If not, browser does not obtain all caching record in cache database, certainly can not delete all caching record in cache database and follow-up deletion cache file yet.
The method realization of functions initiatively removing buffer memory is supplied to user eventually through an option, if user clicks this option, then removes browser rs cache, if user's not click option, does not then remove browser rs cache.This option can be embodied as an icon on browser in dedicating user to, also other mode can be embodied as in dedicating user to, in icon mode, when browser loads or after browser load operating a period of time, this icon in user's click browser, then think that browser receives the order of initiatively removing cache file, open the function initiatively removing browser rs cache, start to remove buffer memory.
Step S402: after receiving the order of initiatively removing cache file at browser, removes the caching record in cache database.
With the method automatically removing buffer memory unlike, initiatively removing in the method for buffer memory, browser can dispose caching record all in cache database, caching record comprises two weeks in the past interior resources be, in past two weeks not by the resource be, the expired resource without ETag and Last_Modified header field, the expired resource having ETag and Last_Modified header field, this is a kind of mode of thorough removing buffer memory, removing browser rs cache that can be profound.That is, no matter whether buffer memory is useful, when active reset mode, all can all be eliminated.
Step S403: when removing the caching record in cache database or after removing caching record, browser provides the information removing cache file to background thread.
Wherein, the information removing cache file comprises the information removing residual cache file and the information removing cache file to be deleted, due to the cache file that do not remove when may exist and clear up buffer memory last time or cache file to be deleted, so send the information removing cache file all first can provide the information removing residual cache file at every turn, reoffer the information removing file to be deleted.It should be noted that, in active reset mode, the information removing cache file also just can remove the information of cache file to be deleted.
Step S404: background thread, after the information receiving the removing cache file that browser provides, deletes the cache file be stored on disk according to cache file deletion algorithm.
Because deleting cache file is a process consuming time, so before deletion cache file, by the catalogue rename of cache file place, then deleted the cache file under rename directory by the background thread that priority is not high.The background thread that priority is not high is an independently background thread, and when there being the task of will delete cache file, this thread can slowly perform deletion work on backstage, does not affect the foregrounding of the high thread of priority like this.
Adopt when deleting cache file and automatically remove cache file deletion algorithm identical in the method for browser rs cache file, please refer to step S201 ~ step S206, do not repeating herein.
Above-mentioned flow process describes the method initiatively removing buffer memory that the embodiment of the present invention provides in detail, and card pauses can user to be made to feel when removing browser rs cache by the cache file deletion algorithm optimized.
The above-mentioned method initiatively removing buffer memory is separate method with the automatic method removing buffer memory, in order to solve not for user removes the problem of browser rs cache automatically, the present invention proposes a kind of method of automatic removing buffer memory, realize the function automatically removing browser rs cache, and in order to solve the problem that page card pauses, present invention optimizes cache file deletion algorithm, cache file deletion algorithm after optimizing is applied in the method initiatively removing buffer memory and the method automatically removing buffer memory respectively, improve from two aspects, solve the problem that the page card in user's use procedure pauses.
Corresponding with the method for above-mentioned automatic removing buffer memory, the invention provides a kind of device of automatic removing buffer memory.Fig. 5 shows the logical organization of the device of the automatic removing buffer memory according to the embodiment of the present invention.
As shown in Figure 5, the device 500 of the automatic removing buffer memory that the embodiment of the present invention provides, comprises caching record clearing cell 510, information provider unit 520 and buffer memory file erase unit 530.
Wherein, caching record clearing cell 510, for when browser start-up loading or when moving to the first Preset Time continuously after loading, removes the caching record in cache database.
Information provider unit 520 removes the information of the cache file corresponding with caching record for providing to background thread.
Cache file delete cells 530, for according to the information removing cache file, deletes the cache file corresponding with caching record.
In addition, cache file delete cells 530 comprises catalogue rename module 531, and the catalogue of information to the cache file place be stored on disk for the removing cache file provided according to information provider unit carries out rename; Cache file delete cells 530 deletes the cache file under rename directory.
Moreover cache file delete cells 530 also comprises cache file list acquisition module 532, for obtaining cache file list to be deleted; Erasing time determination module 533, for determining to delete each cache file institute interlude in cache file list to be deleted according to the erasing time ratio preset.
Delete in the process of the cache file corresponding with caching record at cache file delete cells 530, cache file delete cells 530 deletes each cache file in cache file list to be deleted according to deletion each cache file institute interlude.Detailed process describes see method step.
Corresponding with the above-mentioned method initiatively removing buffer memory, the invention provides a kind of device initiatively removing buffer memory.Fig. 6 shows the logical organization initiatively removing the device of buffer memory according to the embodiment of the present invention.
As shown in Figure 6, the device 600 initiatively removing buffer memory that the embodiment of the present invention provides, comprises order receiving element 610, caching record clearing cell 620, information provider unit 630 and buffer memory file erase unit 640.
Wherein, order receiving element 610, for when browser start-up loading or after loading, receives the order of initiatively removing cache file;
Caching record clearing cell 620 for receive at order receiving element initiatively remove cache file order after, remove the caching record of cache database.
Information provider unit 630 removes the information of the cache file corresponding with caching record for providing to background thread;
Cache file delete cells 640, for the information of removing cache file provided according to information provider unit 630, deletes the cache file corresponding with caching record.
Wherein, cache file delete cells 640 comprises catalogue rename module 641, and the catalogue of information to the cache file place be stored on disk for the removing cache file provided according to information provider unit 630 carries out rename; Cache file delete cells 640 deletes the cache file under rename directory.
In addition, cache file delete cells 640 also comprises cache file list acquisition module 642, for obtaining cache file list to be deleted; Erasing time determination module 643, for determining each cache file institute interlude in cache file list to be deleted according to the erasing time ratio preset.
Delete at cache file delete cells 640 in the process storing the cache file corresponding with caching record, cache file delete cells 640 deletes each cache file in cache file list to be deleted according to deletion each cache file institute interlude.Detailed process describes see method step.
The present invention is also corresponding provides a kind of device end, Fig. 7 shows the logical organization of the device end 700 according to the embodiment of the present invention, as shown in Figure 7, the device end 700 provided of the embodiment of the present invention comprise for memory buffers file storer 710 and automatically remove the device 500 of buffer memory, this device comprises:
Caching record clearing cell, for when browser start-up loading or when moving to the first Preset Time continuously after loading, removes the caching record in cache database;
Information provider unit, for providing the information removing cache file to background thread; Wherein, cache file is corresponding with caching record;
Cache file delete cells, for according to the information removing cache file, deletes the cache file corresponding with caching record.
The device of automatic removing buffer memory has the structure described in Fig. 5, specifically see describing above, repeats no more herein.
The present invention is also corresponding provides a kind of device end, Fig. 8 shows the logical organization of another device end 800 according to the embodiment of the present invention, as shown in Figure 8, the device end 800 provided of the embodiment of the present invention comprise for memory buffers file storer 810 and initiatively remove the device 600 of buffer memory, this device comprises:
Order receives judging unit, for when institute's browser start-up loading or after loading, receives the order of initiatively removing cache file;
Caching record clearing cell, for receive at order receiving element initiatively remove cache file order after, remove the caching record of cache database.
Information provider unit, for providing the information removing the cache file corresponding with caching record to background thread;
Cache file delete cells, for the information of removing cache file provided according to information provider unit, deletes the cache file corresponding with caching record.
The device initiatively removing buffer memory has the structure described in Fig. 6, specifically see describing above, repeats no more herein.
Above content describes method and the device of removing buffer memory provided by the invention in detail, when browser loads or can run the buffer memory automatically removing browser generation when exceeding Preset Time continuously, improve Buffer Utilization, save the storage space of user; When removing buffer memory, removing buffer memory according to the cache file deletion algorithm improved, the time taking CPU can be reduced, there will not be Caton phenomenon when user browses webpage, improve user and to surf the Net experience.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (10)

1. remove a method for buffer memory, comprising:
When browser start-up loading or when moving to the first Preset Time continuously after loading, the caching record in cache database removed by described browser, and provides the information removing cache file to background thread; Wherein, described cache file is corresponding with described caching record;
Described background thread, according to the information of described removing cache file, deletes the cache file corresponding with described caching record.
2. the method removing buffer memory as claimed in claim 1, also comprises:
When described browser start-up loading or after loading, if described browser receives the order of initiatively removing cache file, then remove the caching record of described cache database, and provide the information of described removing cache file to background thread;
Described background thread, according to the information of described removing cache file, deletes the cache file corresponding with described caching record.
3. the method removing buffer memory as claimed in claim 1, wherein,
Described caching record comprises the resource that arrives useless and the expired resource without ETag and Last_Modified header field in stipulated time section.
4. the method removing buffer memory as claimed in claim 1 or 2, wherein, platform thread is according to the information of described removing cache file in the rear, deletes in the process of the cache file corresponding with described caching record,
Described background thread carries out rename according to the catalogue of the information of described removing cache file to the cache file place be stored on disk;
Delete the cache file under rename directory.
5. the method removing buffer memory as claimed in claim 1 or 2, wherein, described background thread, according to the information of described removing cache file, is deleted the cache file corresponding with described caching record, being comprised:
Obtain cache file list to be deleted;
Determine to delete each cache file institute interlude in described cache file list to be deleted according to the erasing time ratio preset, according to each cache file deleted in the described cache file list to be deleted of each cache file institute interlude deletion.
6. remove a device for buffer memory, comprising:
Caching record clearing cell, for when browser start-up loading or when moving to the first Preset Time continuously after loading, removes the caching record in cache database;
Information provider unit, for providing the information removing cache file to background thread; Wherein, described cache file is corresponding with described caching record;
Cache file delete cells, for the information according to described removing cache file, deletes the cache file corresponding with described caching record.
7. the device removing buffer memory as claimed in claim 6, described device also comprises:
Order receiving element, for when described browser start-up loading or after loading, receives the order of initiatively removing cache file;
After receiving the order of initiatively removing cache file at order receiving element, described caching record clearing cell removes the caching record of described cache database; Information provider unit provides the information of described removing cache file to background thread; Described cache file delete cells, according to the information of described removing cache file, deletes the cache file corresponding with described caching record.
8. the device of removing buffer memory as claimed in claims 6 or 7, wherein,
Described cache file delete cells comprises catalogue rename module, and the catalogue of information to the cache file place be stored on disk for the removing cache file provided according to described information provider unit carries out rename;
Described cache file delete cells deletes the cache file under rename directory.
9. the device of removing buffer memory as claimed in claims 6 or 7, wherein, described cache file delete cells also comprises:
Cache file list acquisition module, for obtaining cache file list to be deleted;
Erasing time determination module, for determining to delete each cache file institute interlude in described cache file list according to the erasing time ratio preset;
Delete in the process of the cache file corresponding with described caching record at described cache file delete cells, described cache file delete cells is according to each cache file deleted in the described cache file list to be deleted of each cache file institute interlude deletion.
10. a device end, comprises the storer for memory buffers file and the device removing buffer memory; Wherein, described device comprises:
Caching record clearing cell, for when browser start-up loading or when moving to the first Preset Time continuously after loading, removes the caching record in cache database;
Information provider unit, for providing the information removing cache file to background thread; Wherein, described cache file is corresponding with described caching record;
Cache file delete cells, for the information according to described removing cache file, deletes the cache file corresponding with described caching record.
CN201410437201.8A 2014-08-29 2014-08-29 Caching clearing method and device Pending CN105447037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410437201.8A CN105447037A (en) 2014-08-29 2014-08-29 Caching clearing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410437201.8A CN105447037A (en) 2014-08-29 2014-08-29 Caching clearing method and device

Publications (1)

Publication Number Publication Date
CN105447037A true CN105447037A (en) 2016-03-30

Family

ID=55557225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410437201.8A Pending CN105447037A (en) 2014-08-29 2014-08-29 Caching clearing method and device

Country Status (1)

Country Link
CN (1) CN105447037A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777033A (en) * 2016-12-09 2017-05-31 北京齐尔布莱特科技有限公司 The method that Squid removes cache file according to catalogue format
CN106844784A (en) * 2017-03-14 2017-06-13 上海网易小额贷款有限公司 Data cache method, device and computer-readable recording medium
CN108228339A (en) * 2017-07-28 2018-06-29 珠海市魅族科技有限公司 A kind of method for recovering internal storage and device, terminal device and computer readable storage medium
CN109756495A (en) * 2018-12-29 2019-05-14 广东盈世计算机科技有限公司 A kind of Mail Clients and its email processing method
CN113377723A (en) * 2021-07-02 2021-09-10 厦门雅基软件有限公司 Cache file management method, device and storage medium
CN113377724A (en) * 2021-07-02 2021-09-10 厦门雅基软件有限公司 Cache space management method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997015A (en) * 2006-11-24 2007-07-11 华为技术有限公司 Cache application method and device, and file transfer system
CN101320353A (en) * 2008-07-18 2008-12-10 四川长虹电器股份有限公司 Design method of embedded type browser caching
CN101901270A (en) * 2010-08-05 2010-12-01 上海酷吧信息技术有限公司 Internal memory database method supporting mass memory
CN102479250A (en) * 2010-11-26 2012-05-30 中国科学院声学研究所 Disk caching method for embedded browser
CN102779181A (en) * 2012-06-29 2012-11-14 广州市动景计算机科技有限公司 Browser off-line storage data processing method based on hypertext markup language (HTML) 5 and browser
CN103152367A (en) * 2011-12-06 2013-06-12 盛乐信息技术(上海)有限公司 Cache dynamic maintenance updating method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997015A (en) * 2006-11-24 2007-07-11 华为技术有限公司 Cache application method and device, and file transfer system
CN101320353A (en) * 2008-07-18 2008-12-10 四川长虹电器股份有限公司 Design method of embedded type browser caching
CN101901270A (en) * 2010-08-05 2010-12-01 上海酷吧信息技术有限公司 Internal memory database method supporting mass memory
CN102479250A (en) * 2010-11-26 2012-05-30 中国科学院声学研究所 Disk caching method for embedded browser
CN103152367A (en) * 2011-12-06 2013-06-12 盛乐信息技术(上海)有限公司 Cache dynamic maintenance updating method and system
CN102779181A (en) * 2012-06-29 2012-11-14 广州市动景计算机科技有限公司 Browser off-line storage data processing method based on hypertext markup language (HTML) 5 and browser

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777033A (en) * 2016-12-09 2017-05-31 北京齐尔布莱特科技有限公司 The method that Squid removes cache file according to catalogue format
CN106777033B (en) * 2016-12-09 2019-06-25 北京齐尔布莱特科技有限公司 The method that Squid removes cache file according to catalogue format
CN106844784A (en) * 2017-03-14 2017-06-13 上海网易小额贷款有限公司 Data cache method, device and computer-readable recording medium
CN108228339A (en) * 2017-07-28 2018-06-29 珠海市魅族科技有限公司 A kind of method for recovering internal storage and device, terminal device and computer readable storage medium
CN109756495A (en) * 2018-12-29 2019-05-14 广东盈世计算机科技有限公司 A kind of Mail Clients and its email processing method
CN113377723A (en) * 2021-07-02 2021-09-10 厦门雅基软件有限公司 Cache file management method, device and storage medium
CN113377724A (en) * 2021-07-02 2021-09-10 厦门雅基软件有限公司 Cache space management method, device and storage medium
CN113377723B (en) * 2021-07-02 2024-04-05 厦门雅基软件有限公司 Cache file management method, device and storage medium

Similar Documents

Publication Publication Date Title
CN105447037A (en) Caching clearing method and device
RU2577193C2 (en) Web page search and browsing enhanced by cloud computing
Ihm et al. Towards understanding modern web traffic
CN100518088C (en) A stream media data content management method
CN102439579A (en) Variable rate media delivery system
CN104462534B (en) network information sharing method and device
CN105095107A (en) Buffer memory data cleaning method and apparatus
CN103810176A (en) Pre-fetching accessing method and device of webpage information
CN104219283A (en) Method for file downloading on demand and automatic synchronizing on basis of cloud storage and device thereof
CN103123630A (en) Method, system, mobile terminal and server for obtaining webpage contents
US20200344128A1 (en) Storage capacity evaluation method based on content delivery network application and device thereof
CN102970358A (en) Method and device for controlling local cache of mobile client in network disc
CN104243425A (en) Content management method, device and system in content delivery network
CN102446222A (en) Method, device and system of webpage content preloading
CN104298790A (en) Browser accelerating method and browser device with accelerator
CN102184177A (en) Method and system for previewing file
CN107577711B (en) Method and device for caching pictures
CN102307234A (en) Resource retrieval method based on mobile terminal
CN103338249A (en) Cache method and device
CN105808221A (en) Card type desktop realization method and apparatus
CN104253836A (en) Wireless network based image displaying method and system and mobile terminal
CN102523301A (en) Method for caching data on client in cloud storage
CN112818201A (en) Network data acquisition method and device, computer equipment and storage medium
CN102411631A (en) Disk cache method of embedded browser
CN104935666A (en) Method and system for watching PDF file with mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100083, Haidian District, Beijing, Fu Cheng Road, No. 28 excellent building, block A, floor 12

Applicant after: Excelle View Technology Co., Ltd.

Address before: 100080 Beijing City, Haidian District Road, No. 28 into the house on the 12 floor

Applicant before: Excelle View Technology Co., Ltd.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160330