CN113590618A - Zero-access-volume page resource cleaning method and device and electronic equipment - Google Patents

Zero-access-volume page resource cleaning method and device and electronic equipment Download PDF

Info

Publication number
CN113590618A
CN113590618A CN202110816159.0A CN202110816159A CN113590618A CN 113590618 A CN113590618 A CN 113590618A CN 202110816159 A CN202110816159 A CN 202110816159A CN 113590618 A CN113590618 A CN 113590618A
Authority
CN
China
Prior art keywords
resource
resource list
list
page
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110816159.0A
Other languages
Chinese (zh)
Other versions
CN113590618B (en
Inventor
欧阳志刚
丘晓强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Qiyue Information Technology Co Ltd
Original Assignee
Shanghai Qiyue 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 Shanghai Qiyue Information Technology Co Ltd filed Critical Shanghai Qiyue Information Technology Co Ltd
Priority to CN202110816159.0A priority Critical patent/CN113590618B/en
Publication of CN113590618A publication Critical patent/CN113590618A/en
Application granted granted Critical
Publication of CN113590618B publication Critical patent/CN113590618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/283Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Abstract

The invention relates to the technical field of computers, in particular to a method and a device for cleaning zero-access-volume page resources and electronic equipment, wherein the method comprises the following steps: acquiring page resource access amount data, and exporting the access amount data to a specified Excel table; performing data processing and filtering on the name of the non-zero access amount page resource in the Excel table to obtain a first resource list; reading a resource list of the current version offline package resource, and generating a second resource list; comparing the first resource list with the second resource list, and processing the first resource list and the second resource list through a preset algorithm to obtain a resource list to be cleaned; and matching the resource list to be cleaned with the current version offline package resource, and cleaning the page resource matched with the resource list to be cleaned. According to the method, the zero-access-amount page specific resources are quickly found out in a resource matching mode for cleaning, so that the application program becomes lighter, and the useless codes of the application program are prevented from being overstaffed.

Description

Zero-access-volume page resource cleaning method and device and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a zero-access-volume page resource cleaning method and device and electronic equipment.
Background
Disclosure of Invention
The invention provides a method and a device for cleaning zero-access-amount page resources and electronic equipment, which are used for cleaning the zero-access-amount page specific resources and enabling application programs to become lighter.
An embodiment of the present specification provides a method for cleaning zero-access-volume page resources, including:
acquiring page resource access amount data, and exporting the access amount data to a specified Excel table;
performing data processing and filtering on the name of the non-zero access amount page resource in the Excel table to obtain a first resource list;
reading a resource list of the current version offline package resource, and generating a second resource list;
comparing the first resource list with the second resource list, and processing the first resource list and the second resource list through a preset algorithm to obtain a resource list to be cleaned;
and matching the resource list to be cleaned with the current version offline package resource, and cleaning the page resource matched with the resource list to be cleaned.
Preferably, the acquiring page resource access amount data includes:
and querying a summarized data table through a data warehouse tool to obtain page resource access amount data.
Preferably, the reading of the resource list of the current version offline package resource includes:
downloading the current version of the offline package resource through a content distribution network;
decompressing the current version offline packet resource to a specified directory;
and reading the resource list of the current version offline package resource by executing a script.
Preferably, the comparing the first resource list and the second resource list includes:
traversing each row variable of the first resource list;
matching the variable with the second resource list;
and when the second resource list has a variable corresponding to the variable, filtering data related to the variable from the second resource list to obtain the resource list to be cleaned.
An embodiment of the present specification further provides a device for cleaning zero-access-amount page resources, including:
the data acquisition module is used for acquiring page resource access amount data and exporting the access amount data to a specified Excel table;
the first data processing module is used for processing and filtering the data of the names of the non-zero access amount page resources in the Excel table to obtain a first resource list;
the resource reading module reads a resource list of the current version offline package resources and generates a second resource list;
the second data processing module is used for comparing the first resource list with the second resource list and processing the first resource list and the second resource list through a preset algorithm to obtain a resource list to be cleaned;
and the resource cleaning module is used for matching the resource list to be cleaned with the current version offline package resource and cleaning the page resource matched with the resource list to be cleaned.
Preferably, the acquiring page resource access amount data includes:
and querying a summarized data table through a data warehouse tool to obtain page resource access amount data.
Preferably, the reading of the resource list of the current version offline package resource includes:
downloading the current version of the offline package resource through a content distribution network;
decompressing the current version offline packet resource to a specified directory;
and reading the resource list of the current version offline package resource by executing a script.
Preferably, the comparing the first resource list and the second resource list includes:
traversing each row variable of the first resource list;
matching the variable with the second resource list;
and when the second resource list has a variable corresponding to the variable, filtering data related to the variable from the second resource list to obtain the resource list to be cleaned.
An electronic device, wherein the electronic device comprises:
a processor and a memory storing computer executable instructions that, when executed, cause the processor to perform the method of any of the above.
A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of the above.
The method can quickly and accurately find out specific resources which are expired or no longer needed to be used in the application by automatically identifying the zero-access-amount resources of the offline package, and the application program becomes lighter by cleaning the resources, so that the application program is prevented from being overstaffed by useless codes, and enterprises are helped to save network resource flow expenditure; meanwhile, the development of the application project is concise and clean, and the development and the maintenance are convenient.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic diagram illustrating a method for clearing zero-throughput page resources according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a cleaning apparatus for zero-access page resources according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present specification.
Detailed Description
Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The exemplary embodiments, however, may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals denote the same or similar elements, components, or parts in the drawings, and thus their repetitive description will be omitted.
Features, structures, characteristics or other details described in a particular embodiment do not preclude the fact that the features, structures, characteristics or other details may be combined in a suitable manner in one or more other embodiments in accordance with the technical idea of the invention.
In describing particular embodiments, the present invention has been described with reference to features, structures, characteristics or other details that are within the purview of one skilled in the art to provide a thorough understanding of the embodiments. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific features, structures, characteristics, or other details.
The diagrams depicted in the figures are exemplary only, and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The term "and/or" and/or "includes all combinations of any one or more of the associated listed items.
Referring to fig. 1, a schematic diagram of a method for cleaning a zero-access page resource provided in an embodiment of the present specification includes:
s101: acquiring page resource access amount data, and exporting the access amount data to a specified Excel table;
in a preferred embodiment of the invention, based on the group data reporting requirement, the front end reports the data of the page opened by the user and stores the data into the data table of the HIVE database, so that the specific condition of the resource access amount can be obtained by analyzing and processing the data through ad hoc query, and the page resource access amount data is obtained through the method, thereby facilitating the subsequent comparison and calculation of page resources and quickly and accurately finding out specific resources which are expired or no longer needed to be used in the application.
S102: performing data processing and filtering on the name of the non-zero access amount page resource in the Excel table to obtain a first resource list;
in a preferred embodiment of the invention, the data details of the page access amount of the data table in the system are inquired in the ad hoc inquiry mode, the data details of the page access amount of the data table are exported to an appointed directory Excel table, simultaneously, files corresponding to the Excel table are named, then an automatic script is executed to find out the name of the non-zero access amount resource from the Excel table for data processing and filtering, and a first resource list is obtained. The first resource list is used for comparing and calculating page resources in the following process, and specific resources in the application are quickly and accurately found out and are expired or no longer needed to be used.
S103: reading a resource list of the current version offline package resource, and generating a second resource list;
in a preferred embodiment of the present invention, a CDN (Content Delivery Network) resource downloads a current version of an offline packet resource, decompresses the offline packet resource to an assigned directory, reads a resource list through a script and generates a full packet list resource list data, outputs the full packet list resource list data to a second resource list, and backs up one as a file to be read, where the CDN is an intelligent virtual Network built on the basis of an existing Network, and a user obtains a desired Content nearby by using functional modules such as load balancing, Content Delivery, scheduling, and the like of a central platform by using edge servers deployed in various places, so as to reduce Network congestion and improve user access response speed and hit rate.
S104: comparing the first resource list with the second resource list, and processing the first resource list and the second resource list through a preset algorithm to obtain a resource list to be cleaned;
in a preferred embodiment of the present invention, each row of variables of the first resource list is traversed, the variables are sequentially matched with the second resource list, and when the second resource list has variables corresponding to the variables, data related to the variables in the second resource list is filtered out until the first resource list has completed the matching process, and finally the resource list to be cleaned is obtained. The resources corresponding to the list of the resources to be cleaned are cleaned, so that the application program becomes lighter, the useless codes of the application program are prevented from being too big, and the enterprise is helped to save network resource flow cost; meanwhile, the development of the application project is concise and clean, and the development and the maintenance are convenient.
S105: and matching the resource list to be cleaned with the current version offline package resource, and cleaning the page resource matched with the resource list to be cleaned.
In a preferred embodiment of the invention, the list of the resource list to be cleaned is matched with the current version of the offline package resource, and the matched resources are cleaned, so that the application program becomes lighter, the useless codes of the application program are prevented from being overstaffed, and the network resource flow expense of an enterprise is saved; meanwhile, the development of the application project is concise and clean, and the development and the maintenance are convenient.
Further, the acquiring page resource access amount data includes:
and querying a summarized data table through a data warehouse tool to obtain page resource access amount data.
In the preferred embodiment of the invention, the data warehouse tool is used for inquiring the HIVE database data table so as to obtain the page resource access amount data, and the page resource access amount data is obtained in the above way, so that the page resource comparison and calculation are conveniently carried out subsequently, and the specific resources in the application are quickly and accurately found out to be expired or not to be used any more.
Further, the reading of the resource list of the current version offline package resource includes:
downloading the current version of the offline package resource through a content distribution network;
decompressing the current version offline packet resource to a specified directory;
and reading the resource list of the current version offline package resource by executing a script.
In a preferred embodiment of the present invention, a CDN (Content Delivery Network) resource is used to download a current version of an offline package resource, decompress the current version of the offline package resource to an appointed directory, read a resource list through a script and generate full package list resource list data, output the full package list resource list data to a second resource list, and backup a file to be read, where the backed-up file to be read is used for comparison with a subsequent file to confirm that a red list of resource lists to be cleaned is needed.
Further, the comparing the first resource list and the second resource list includes:
traversing each row variable of the first resource list;
matching the variable with the second resource list;
and when the second resource list has a variable corresponding to the variable, filtering data related to the variable from the second resource list to obtain the resource list to be cleaned.
In a preferred embodiment of the present invention, each row of variables of the first resource list is traversed, the variables are sequentially matched with the second resource list, when the second resource list has variables corresponding to the variables, data related to the variables are filtered out from the second resource list until the first resource list has completed the matching process, an initial resource list to be cleaned is obtained, and then the initial resource list to be cleaned and the number of rows in the file to be read are compared, with the smaller number of rows being the final resource list to be cleaned. For example: reading the value of the first row of the first resource list, matching the value of the first row of the first resource list with the second resource list, if the second resource list has the value of the first row of the first resource list, filtering to the value corresponding to the value of the first row of the first resource list in the second resource list, reducing the number of rows of the second resource list by one, starting to traverse to the value of the second row of the first resource list, judging according to the value obtained by inverting the variable last time (namely when the variable is true, setting the variable as false after the execution is finished, otherwise setting the variable as true), reading the second resource list after the reduction of the rows by the program, repeating the filtering operation, reducing the number of rows of the second resource list by 2, and so on until the circular traversal filtering is finished, judging which file row number is less to know that the file is the newest file, the resource list to be cleaned and the filtered second resource list are compared and judged in line number, the line number which is less is the final resource list to be cleaned, the resource is circularly filtered by offline packet through the final resource list to be cleaned, and finally the remained resource which is not cleaned is a resource page set list without access. By the method, the application program becomes lighter, the application program is prevented from being too big in useless codes, and enterprises are helped to save network resource and flow expenses; meanwhile, the development of the application project is concise and clean, and the development and the maintenance are convenient.
In the preferred embodiment of the invention, step 1, inquiring the data details of the page access amount of the data table in the system from the HIVE data source, exporting the data details to an appointed directory Excel table, and naming the file name according to the requirement; step 2, executing an automatic script to find out an html file from the Excel as a non-zero access resource name, and performing data processing and filtering to obtain a resource list; step 3, downloading the current version of the offline package resource through the CDN resource, decompressing to an appointed directory, reading the resource list through a script, producing the resource list data of the full package list, and backing up as a file to be read; step 4, comparing data of the two lists and carrying out algorithm processing to obtain a specific zero-access resource list; and 5, obtaining a list of the list resources to be cleaned through calculation, traversing the list resources to be cleaned through the automatic script, finding out a related dependency list, and cleaning files one by one.
Step 1, referring to the data of the access amount of the acquired page resource in the above embodiment, exporting the data of the access amount to a designated Excel table; "to describe, in step 2, reference may be made to the above embodiment," data processing and filtering are performed on the names of the non-zero-access-amount page resources in the Excel table, "to obtain a first resource list; "step 3 may refer to" download the current version offline package resource through the content distribution network in the above embodiment; decompressing the current version offline packet resource to a specified directory; and reading the resource list of the current version offline package resource by executing a script. "step 4 may refer to the above embodiment for" go through each row variable of the first resource list; matching the variable with the second resource list; and when the second resource list has a variable corresponding to the variable, filtering data related to the variable from the second resource list to obtain the resource list to be cleaned. "with reference to the above embodiment, step 5 may refer to" matching the resource list to be cleaned with the current version offline package resource, and cleaning the page resource matched with the resource list to be cleaned. "is described.
Fig. 2 is a schematic structural diagram of a cleaning apparatus for zero-access-amount page resources provided in an embodiment of the present specification, including:
the data acquisition module 201 is used for acquiring page resource access amount data and exporting the access amount data to a designated Excel table;
the first data processing module 202 is used for performing data processing and filtering on the names of the non-zero access amount page resources in the Excel table to obtain a first resource list;
the resource reading module 203 reads a resource list of the current version offline package resource and generates a second resource list;
the second data processing module 204 compares the first resource list with the second resource list, and processes the first resource list and the second resource list through a preset algorithm to obtain a resource list to be cleaned;
and the resource cleaning module 205 is configured to match the list of the resource list to be cleaned with the current version offline package resource, and clean the page resource matched with the list of the resource list to be cleaned.
Further, the data obtaining module 201 includes a data obtaining sub-module, configured to query the summary data table through the data warehouse tool, and obtain the page resource access amount data.
Further, the resource reading module 203 includes a resource reading sub-module, configured to download the current version offline package resource through the content distribution network; decompressing the current version offline packet resource to a specified directory; and reading the resource list of the current version offline package resource by executing a script.
Further, the second data processing module 204 includes a comparison module, configured to traverse each row variable of the first resource list; matching the variable with the second resource list; and when the second resource list has a variable corresponding to the variable, filtering data related to the variable from the second resource list to obtain the resource list to be cleaned.
The functions of the apparatus in the embodiment of the present invention have been described in the above method embodiments, so that reference may be made to the related descriptions in the foregoing embodiments for details that are not described in the present embodiment, and further details are not described herein.
Based on the same inventive concept, the embodiment of the specification further provides the electronic equipment.
In the following, embodiments of the electronic device of the present invention are described, which may be regarded as specific physical implementations for the above-described embodiments of the method and apparatus of the present invention. Details described in the embodiments of the electronic device of the invention should be considered supplementary to the embodiments of the method or apparatus described above; for details which are not disclosed in embodiments of the electronic device of the invention, reference may be made to the above-described embodiments of the method or the apparatus.
Fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present specification. An electronic device 300 according to this embodiment of the invention is described below with reference to fig. 3. The electronic device 300 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 3, electronic device 300 is embodied in the form of a general purpose computing device. The components of electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one memory unit 320, a bus 330 connecting different device components (including the memory unit 320 and the processing unit 310), a display unit 340, and the like.
Wherein the storage unit stores program code executable by the processing unit 310 to cause the processing unit 310 to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned processing method section of the present specification. For example, the processing unit 310 may perform the steps as shown in fig. 1.
The storage unit 320 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)3201 and/or a cache storage unit 3202, and may further include a read only memory unit (ROM) 3203.
The storage unit 320 may also include a program/utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including, but not limited to: an operating device, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 330 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 300, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 300 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 350. Also, the electronic device 300 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 360. Network adapter 360 may communicate with other modules of electronic device 300 via bus 330. It should be appreciated that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices, to name a few.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments of the present invention described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, or a network device, etc.) execute the above-mentioned method according to the present invention. The computer program, when executed by a data processing apparatus, enables the computer readable medium to implement the above-described method of the invention, namely: such as the method shown in fig. 1.
Fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present disclosure.
A computer program implementing the method shown in fig. 1 may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components in embodiments in accordance with the invention may be implemented in practice using a general purpose data processing device such as a microprocessor or a Digital Signal Processor (DSP). The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
While the foregoing embodiments have described the objects, aspects and advantages of the present invention in further detail, it should be understood that the present invention is not inherently related to any particular computer, virtual machine or electronic device, and various general-purpose machines may be used to implement the present invention. The invention is not to be considered as limited to the specific embodiments thereof, but is to be understood as being modified in all respects, all changes and equivalents that come within the spirit and scope of the invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for cleaning zero-access-amount page resources is characterized by comprising the following steps:
acquiring page resource access amount data, and exporting the access amount data to a specified Excel table;
performing data processing and filtering on the name of the non-zero access amount page resource in the Excel table to obtain a first resource list;
reading a resource list of the current version offline package resource, and generating a second resource list;
comparing the first resource list with the second resource list, and processing the first resource list and the second resource list through a preset algorithm to obtain a resource list to be cleaned;
and matching the resource list to be cleaned with the current version offline package resource, and cleaning the page resource matched with the resource list to be cleaned.
2. The method for clearing zero-access-volume page resources according to claim 1, wherein the obtaining page resource access volume data comprises:
and querying a summarized data table through a data warehouse tool to obtain page resource access amount data.
3. The method for cleaning up zero-access page resources of any one of claims 1-2, wherein the reading of the resource list of the current version offline package resources comprises:
downloading the current version of the offline package resource through a content distribution network;
decompressing the current version offline packet resource to a specified directory;
and reading the resource list of the current version offline package resource by executing a script.
4. A method for clearing zero-access page resources according to any one of claims 1-3, wherein said comparing said first resource list and said second resource list comprises:
traversing each row variable of the first resource list;
matching the variable with the second resource list;
and when the second resource list has a variable corresponding to the variable, filtering data related to the variable from the second resource list to obtain the resource list to be cleaned.
5. A cleaning device for zero-access page resources is characterized by comprising:
the data acquisition module is used for acquiring page resource access amount data and exporting the access amount data to a specified Excel table;
the first data processing module is used for processing and filtering the data of the names of the non-zero access amount page resources in the Excel table to obtain a first resource list;
the resource reading module reads a resource list of the current version offline package resources and generates a second resource list;
the second data processing module is used for comparing the first resource list with the second resource list and processing the first resource list and the second resource list through a preset algorithm to obtain a resource list to be cleaned;
and the resource cleaning module is used for matching the resource list to be cleaned with the current version offline package resource and cleaning the page resource matched with the resource list to be cleaned.
6. The apparatus for cleaning zero-access page resources of claim 5, wherein said obtaining page resource access data comprises:
and querying a summarized data table through a data warehouse tool to obtain page resource access amount data.
7. The apparatus for cleaning up zero-access page resources of any one of claims 5-6, wherein the reading of the resource list of the current version offline package resources includes:
downloading the current version of the offline package resource through a content distribution network;
decompressing the current version offline packet resource to a specified directory;
and reading the resource list of the current version offline package resource by executing a script.
8. The apparatus for cleaning up zero-visitor volume page resources of any one of claims 5-7, wherein the comparing the first resource list and the second resource list comprises:
traversing each row variable of the first resource list;
matching the variable with the second resource list;
and when the second resource list has a variable corresponding to the variable, filtering data related to the variable from the second resource list to obtain the resource list to be cleaned.
9. An electronic device, wherein the electronic device comprises:
a processor and a memory storing computer-executable instructions that, when executed, cause the processor to perform the method of any of claims 1-4.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-4.
CN202110816159.0A 2021-07-19 2021-07-19 Zero access amount page resource cleaning method and device and electronic equipment Active CN113590618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110816159.0A CN113590618B (en) 2021-07-19 2021-07-19 Zero access amount page resource cleaning method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110816159.0A CN113590618B (en) 2021-07-19 2021-07-19 Zero access amount page resource cleaning method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113590618A true CN113590618A (en) 2021-11-02
CN113590618B CN113590618B (en) 2023-10-13

Family

ID=78248172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110816159.0A Active CN113590618B (en) 2021-07-19 2021-07-19 Zero access amount page resource cleaning method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113590618B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281688A (en) * 2014-10-10 2015-01-14 百度在线网络技术(北京)有限公司 Automatic erasing method and automatic erasing device for browser
US20150199278A1 (en) * 2013-01-30 2015-07-16 Google Inc. Clearing an application cache
CN107332918A (en) * 2017-07-07 2017-11-07 上海斐讯数据通信技术有限公司 A kind of high in the clouds local file synchronization realizing method and system
CN107729352A (en) * 2017-08-30 2018-02-23 上海壹账通金融科技有限公司 page resource loading method and terminal device
CN108241689A (en) * 2016-12-26 2018-07-03 广州市动景计算机科技有限公司 Page resource acquisition methods, device and client device
CN111427648A (en) * 2020-03-23 2020-07-17 北京达佳互联信息技术有限公司 Page resource updating method and device, electronic equipment, server and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150199278A1 (en) * 2013-01-30 2015-07-16 Google Inc. Clearing an application cache
CN104281688A (en) * 2014-10-10 2015-01-14 百度在线网络技术(北京)有限公司 Automatic erasing method and automatic erasing device for browser
CN108241689A (en) * 2016-12-26 2018-07-03 广州市动景计算机科技有限公司 Page resource acquisition methods, device and client device
CN107332918A (en) * 2017-07-07 2017-11-07 上海斐讯数据通信技术有限公司 A kind of high in the clouds local file synchronization realizing method and system
CN107729352A (en) * 2017-08-30 2018-02-23 上海壹账通金融科技有限公司 page resource loading method and terminal device
CN111427648A (en) * 2020-03-23 2020-07-17 北京达佳互联信息技术有限公司 Page resource updating method and device, electronic equipment, server and storage medium

Also Published As

Publication number Publication date
CN113590618B (en) 2023-10-13

Similar Documents

Publication Publication Date Title
US10735345B2 (en) Orchestrating computing resources between different computing environments
CN108279932B (en) Method and device for dynamically configuring user interface of mobile terminal
CN110968325A (en) Applet conversion method and device
CN111552899A (en) Method and system for improving display performance of front-end report
CN108038665B (en) Business rule management method, device, equipment and computer readable storage medium
CN112015402A (en) Method and device for quickly establishing service scene and electronic equipment
CN107704357B (en) Log generation method and device
CN109977139B (en) Data processing method and device based on class structured query statement
CN109491661B (en) Universal cross-compiling method and device
CN108985805B (en) Method and device for selectively executing push task
GB2505186A (en) Using machine learning to categorise software items
CN113590618B (en) Zero access amount page resource cleaning method and device and electronic equipment
CN110955460B (en) Service process starting method and device, electronic equipment and storage medium
CN111814041A (en) NPM package recommendation method and device, storage medium and computer equipment
CN107679096B (en) Method and device for sharing indexes among data marts
CN111125163A (en) Method and apparatus for processing data
CN113495723B (en) Method, device and storage medium for calling functional component
CN114880385B (en) Method and device for accessing geological disaster data through automatic combination process
CN110851343A (en) Test method and device based on decision tree
CN114020789A (en) Bill data query method, system, device and storage medium
CN112181964A (en) Business notification duplicate removal method, device, server and storage medium
CN112597119A (en) Method and device for generating processing log and storage medium
CN112783615A (en) Method and device for cleaning data processing task
CN112698862A (en) Engine system and engine processing method
CN110750563A (en) Multi-model data processing method, system, device, electronic equipment and storage medium

Legal Events

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