Page data acquisition method and apparatus, communication device, storage medium, and program product

By receiving the client's geocaching pre-request, determining the target cache location from the geocaching data based on the target query strategy, and returning the page cache data, the problem of slow page loading for first-time users of the instant retail application was solved, achieving instant page loading and improving the user experience.

WO2026051792A1PCT designated stage Publication Date: 2026-03-12BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-08-25
Publication Date
2026-03-12

AI Technical Summary

Technical Problem

In existing technologies, the first-time user page for instant retail applications loads slowly and cannot be opened instantly, resulting in a degraded user experience.

Method used

By receiving the client's geocaching pre-request, the system determines the target cache location that matches the client's location from the geocaching data based on the target query strategy, and returns the target page cache data so that the client can display the target page.

Benefits of technology

It improved page loading speed, reduced the white screen bounce rate, enhanced user experience, and achieved a page loading speed that was instantaneous.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025116687_12032026_PF_FP_ABST
    Figure CN2025116687_12032026_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure relates to a page data acquisition method and apparatus, a communication device, a storage medium, and a program product. The method comprises: receiving a geographic cache pre-request sent by a client, the geographic cache pre-request being used for requesting page cache data of a target page of a target application; in response to the geographic cache pre-request, on the basis of a target query strategy, determining, from geographic cache data, a target cache location matching the location of the client, and target page cache data corresponding to the target cache location, wherein the target query strategy comprises a target query radius, the distance between the target cache location and the location of the client is less than or equal to the target query radius, the geographic cache data comprises a plurality of cache locations and a plurality of pieces of page cache data respectively corresponding to the plurality of cache locations, and the page cache data is real page data of the target page displayed by the client at the corresponding cache locations before the geographic cache pre-request; and returning the target page cache data to the client.
Need to check novelty before this filing date? Find Prior Art

Description

Page data acquisition method and device, communication device, storage medium and program product

[0001] This application claims priority to Chinese Patent Application No. 202411253468.1, filed on September 6, 2024, the disclosure of which is incorporated herein in its entirety as part of the present application. TECHNICAL FIELD

[0002] The present disclosure relates to a page data acquisition method, device, communication device, storage medium and program product. BACKGROUND

[0003] Currently, most of the optimization schemes for realizing page second opening of consumer-oriented pages for instant retail applications are based on local cache loading schemes. However, the local cache loading scheme is usually for non-first-visit users, so the above-mentioned second opening optimization scheme cannot be applied to first-visit users, resulting in slow page loading for first-visit users, which cannot realize page second opening and reduces user experience. SUMMARY

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a page data acquisition method, device, communication device, storage medium and program product.

[0005] In a first aspect, the present disclosure provides a page data acquisition method, applied to a server, the method comprising: receiving a geographic cache pre-request sent by a client, the geographic cache pre-request being used to request page cache data of a target page of a target application; in response to the geographic cache pre-request, determining, based on a target query strategy, a target cache location matched with a location of the client from geographic cache data, and target page cache data corresponding to the target cache location; the target query strategy comprising a target query radius, a distance between the target cache location and the location of the client being less than or equal to the target query radius; the geographic cache data comprising a plurality of cache locations and a plurality of page cache data respectively corresponding to the plurality of cache locations; the page cache data being real page data of the target page displayed by a client at a corresponding cache location before the geographic cache pre-request; and returning the target page cache data to the client.

[0006] In a second aspect, a page data obtaining method is provided. The method is applied to a client and includes: sending a geographic cache pre-request to a server, the geographic cache pre-request being used to request page cache data of a target page of a target application; and receiving target page cache data returned by the server, the target page cache data being target cache location matching a location of the client and corresponding target page cache data of the target cache location, which are determined from geographic cache data based on a target query strategy in response to the geographic cache pre-request. The target query strategy includes a target query radius, and a distance between the target cache location and the location of the client is less than or equal to the target query radius. The geographic cache data includes a plurality of cache locations and a plurality of page cache data corresponding to the plurality of cache locations respectively. The page cache data is real page data of the target page displayed by a client at a corresponding cache location before the geographic cache pre-request. The target page is displayed based on the target page cache data.

[0007] In a third aspect, a page data obtaining apparatus is provided. The apparatus includes: a receiving module configured to receive a geographic cache pre-request sent by a client, the geographic cache pre-request being used to request page cache data of a target page of a target application; a determining module configured to determine, in response to the geographic cache pre-request, target cache location matching a location of the client and corresponding target page cache data of the target cache location from geographic cache data based on a target query strategy. The target query strategy includes a target query radius, and a distance between the target cache location and the location of the client is less than or equal to the target query radius. The geographic cache data includes a plurality of cache locations and a plurality of page cache data corresponding to the plurality of cache locations respectively. The page cache data is real page data of the target page displayed by a client at a corresponding cache location before the geographic cache pre-request. A sending module configured to return the target page cache data to the client.

[0008] In a fourth aspect, the present disclosure provides a page data obtaining apparatus, comprising: a sending module configured to send a geographic cache pre-request to a server, the geographic cache pre-request being used to request page cache data of a target page of a target application; a receiving module configured to receive target page cache data returned by the server, the target page cache data being target cache location corresponding to a location of a client and target page cache data corresponding to the target cache location, which are determined from geographic cache data by the server based on a target query strategy in response to the geographic cache pre-request; the target query strategy comprising a target query radius, and a distance between the target cache location and the location of the client being less than or equal to the target query radius; the geographic cache data comprising a plurality of cache locations and a plurality of page cache data corresponding to the plurality of cache locations respectively; the page cache data being real page data of the target page displayed by the client at the corresponding cache location before the geographic cache pre-request; and a display module configured to display the target page based on the target page cache data.

[0009] In a fifth aspect, the present disclosure provides a communication device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the computer program implements the page data obtaining method according to the first aspect.

[0010] In a sixth aspect, the present disclosure provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the page data obtaining method according to the first aspect or the second aspect.

[0011] In a seventh aspect, the present disclosure provides a computer program product, and the computer program product comprises a computer program, and when the computer program product is executed on a processor, the computer program causes the processor to execute the computer program, and implements the page data obtaining method according to the first aspect or the second aspect.

[0012] In an eighth aspect, the present disclosure provides a chip, and the chip comprises a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute program instructions, and implements the page data obtaining method according to the first aspect or the second aspect. BRIEF DESCRIPTION OF DRAWINGS

[0013] The accompanying drawings, which are incorporated herein and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, further serve to explain the principles of the present disclosure.

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following will briefly introduce the drawings needed to be used in the embodiments description. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

[0015] Fig. 1 is one of the flow diagrams of the page data acquisition method provided by the embodiments of the present disclosure;

[0016] Fig. 2 is another of the flow diagrams of the page data acquisition method provided by the embodiments of the present disclosure;

[0017] Fig. 3 is one of the structural block diagrams of the page data acquisition apparatus provided by the embodiments of the present disclosure;

[0018] Fig. 4 is another of the structural block diagrams of the page data acquisition apparatus provided by the embodiments of the present disclosure;

[0019] Fig. 5 is a structural block diagram of a communication device provided by the embodiments of the present disclosure. DETAILED DESCRIPTION

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following will briefly introduce the drawings needed to be used in the embodiments description. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

[0021] In the following description, a lot of specific details are set forth in order to give a thorough understanding of the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some of the embodiments of the present disclosure, not all the embodiments.

[0022] The terms "first", "second", etc. in the specification and claims of the present disclosure are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of a kind and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / ", generally means that the objects before and after are in a "or" relationship.

[0023] The following will first explain some nouns or terms involved in the claims and specification of the present disclosure.

[0024] LBS is the abbreviation of Location Based Service, which means location-based service; LBS fulfillment range, usually refers to the area range that can fulfill the order or provide services determined by the location-based service.

[0025] White screen loss rate refers to the proportion of users who leave the page or application when they encounter a white screen (i.e., a long blank display without content) while accessing a webpage or application.

[0026] Real second open rate is calculated according to the rendering time triggered after the real interface returns as the Time to Interactive (TTI) of the webpage or application from the start of loading to the time when the user can interact with it.

[0027] Sensory second open rate is calculated according to the time when the user sees the data (including cached data) and can interact as the TTI.

[0028] Channel page usually refers to a specific page in a website or application that is divided according to themes, content types, or functions.

[0029] The essence of geographic caching is to include the user's positioning address (location point, such as latitude and longitude) to retrieve all pre-sequenced user-visited location point sets within the specified range.

[0030] Currently, the second open optimization scheme for the consumer (Consumer) page of the instant retail application also includes the scheme of skeleton screen (i.e., the scheme of displaying the framework structure of each module of the page), but the skeleton screen scheme cannot display the goods in real time, so the user still cannot interact, reducing the user experience.

[0031] Instant retail applications are different from far-field e-commerce applications, and the services (display content of target pages) provided are limited by the LBS fulfillment range. Users in different regions and ranges cannot use the same cached data, otherwise it will lead to the possibility that the cached data seen by the user may not have fulfillability.

[0032] The server in the embodiments of the present disclosure can be one or more servers that can implement the page data acquisition method, or one or more server clusters, and the embodiments of the present disclosure do not make specific limitations.

[0033] The client in the embodiments of the present disclosure can be an electronic device capable of implementing the page data obtaining method, and can be a mobile electronic device or a non-mobile electronic device. The mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present disclosure do not make specific limitations.

[0034] The execution subject of the page data obtaining method provided by the embodiments of the present disclosure can be the server or the client as described above, or can be a functional module and / or a functional entity capable of implementing the page data obtaining method in the server or the client. The specific implementation can be determined according to actual use requirements, and the embodiments of the present disclosure do not make specific limitations.

[0035] The page data obtaining method provided by the embodiments of the present disclosure will be described in detail below in combination with the accompanying drawings, specific embodiments, and application scenarios.

[0036] As shown in FIG. 1, the present disclosure provides a page data obtaining method, which is applied to a server and can include the following steps 101 to 103.

[0037] 101. Receive a geographic cache pre-request sent by a client.

[0038] The geographic cache pre-request is used to request page cache data of a target page of a target application, and the content displayed by the target page of the target application is limited by the performance range of a location service.

[0039] The client sends the geographic cache pre-request to the server in response to a trigger operation of displaying the target page received by the user.

[0040] The target page includes a channel page, a home page, and a page displaying content limited by the performance range of the location service.

[0041] In some embodiments of the present disclosure, the client sends the geographic cache pre-request to the server while performing page initialization.

[0042] The page initialization can include container startup and JavaScript (js) environment initialization of the target application.

[0043] In some embodiments of the present disclosure, the client sends a real data pre-request to the server while initializing the page, and the real data pre-request is used to request real page data of the target page.

[0044] In some embodiments of the present disclosure, the client can send a geographic cache pre-request to the server through a cache interface, and send a real data pre-request to the server through a real data interface.

[0045] In some embodiments of the present disclosure, the client determines whether to store local page cache data locally while initializing the page.

[0046] In some embodiments of the present disclosure, the client performs page initialization, sends a geographic cache pre-request, sends a real data pre-request, and determines whether to store local page cache data in parallel.

[0047] 102、In response to the geographic cache pre-request, target cache location matching the location of the client is determined from the geographic cache data based on a target query strategy, and target page cache data corresponding to the target cache location.

[0048] The target query strategy includes a target query radius, and the distance between the target cache location and the location of the client is less than or equal to the target query radius, so the target cache location satisfies the constraint of the target query strategy.

[0049] The geographic cache data includes a plurality of cache locations and a plurality of page cache data respectively corresponding to the plurality of cache locations. The page cache data is real page data of the target page displayed by the client at the corresponding cache location before the geographic cache pre-request.

[0050] The location of the client and the cache location are represented by location information, which can be latitude and longitude coordinates or other location information, which is not limited here.

[0051] The geographic cache data can be a mapping relationship between the plurality of cache locations and the plurality of page cache data. The plurality of cache locations can be traversed first to determine the target cache location matching the location of the client, and then the target page cache data corresponding to the target cache location is determined.

[0052] The geographic cache data can also store the plurality of cache locations and the plurality of page cache data respectively.

[0053] The plurality of cache locations can be stored in a point of interest (POI) based geographic database, a geographic grid based geographic grid database, or the like, which is not limited herein. The plurality of page cache data is stored in a memory database for quick access.

[0054] The geographic grid can be divided by a Geohash algorithm, an S2 algorithm, or the like, which is not limited herein.

[0055] The target query strategy includes a target query radius. The target query strategy can further include a cache validity period, or other feasible query strategies, which are not limited herein.

[0056] The target query radius and the cache validity period can be determined according to actual conditions, which are not limited herein.

[0057] 103. Return the target page cache data to the client.

[0058] Return the target page cache data to the client, so that the client displays the target page based on the target page cache data.

[0059] In some embodiments of the present disclosure, when the client receives the target page cache data, and the local does not store the local page cache data, and does not receive the real page data of the target page, the client displays the target page based on the target page cache data.

[0060] In some embodiments of the present disclosure, before the client receives the target page cache data, and before the client receives the real page data of the target page, when it is determined that the local stores the local page cache data, the client displays the target page based on the local page cache data.

[0061] In some embodiments of the present disclosure, after the client receives the target page cache data, and before the client receives the real page data of the target page, when it is determined that the local stores the local page cache data, the client can display the target page based on the local page cache data, or display the target page based on the local page cache data, which is not limited herein.

[0062] In some embodiments of the present disclosure, before the client receives the target page cache data, and before it is determined that the local stores the local page cache data, when the client receives the real page data of the target page, the client can display the target page based on the real page data of the target page, which is not limited herein.

[0063] For the sake of brevity, the real page data of the target page is referred to as page real data.

[0064] The technical scheme provided by the embodiments of the present disclosure has the following advantages: a geographic cache pre-request sent by a client is received, the geographic cache pre-request is used to request page cache data of a target page of a target application; in response to the geographic cache pre-request, target cache location matching a location of the client and target page cache data corresponding to the target cache location are determined from geographic cache data based on a target query strategy; the target query strategy includes a target query radius, and a distance between the target cache location and the location of the client is less than or equal to the target query radius; the geographic cache data includes a plurality of cache locations and a plurality of page cache data corresponding to the plurality of cache locations respectively; the page cache data is real page data of the target page displayed by a client at a corresponding cache location before the geographic cache pre-request; and the target page cache data is returned to the client, so that the client displays the target page based on the target page cache data.

[0065] In the embodiments of the present disclosure, for a target page of a target application, in response to a geographic cache pre-request, target page cache data satisfying a certain location condition with a location of a client is queried from page cache data of other clients stored based on geographic locations, and the target page cache data is returned to the client for target page display. In this way, for a first-visit user, the page loading speed is improved, the page is opened in seconds, the white screen jump loss rate is effectively reduced, the body feeling second opening rate is improved, and the user experience is improved.

[0066] In some embodiments of the present disclosure, the target query strategy further includes a target cache validity period, the plurality of cache locations are stored in a geographic grid database, and the plurality of page cache data are stored in a memory database; and the step 102 can be implemented by the following steps 102a to 102e.

[0067] 102a, in response to the geographic cache pre-request, a grid code of a geographic grid corresponding to the location of the client is determined.

[0068] The grid code can be determined by performing coordinate transformation on the longitude and latitude coordinates of the location of the client based on a grid code rule.

[0069] 102b, based on the grid code, a minimum grid set covering a target filtering range in the geographic grid database is determined.

[0070] The center of the target filtering range is the location of the client, and the radius of the target filtering range is the target query radius, that is, the target filtering range is a circular area with the location of the client as the center and the target query radius as the radius.

[0071] The minimum grid set includes at least one geographic grid, and the minimum grid set at least includes a geographic grid corresponding to the location of the client.

[0072] It can be understood that, based on the grid encoding, the geographical grid corresponding to the location of the client can be determined, and then it can be determined whether the geographical grid corresponding to the location of the client can cover the target screening range. If the geographical grid corresponding to the location of the client can cover the target screening range, the minimum grid set only includes the geographical grid corresponding to the location of the client. If the geographical grid corresponding to the location of the client cannot cover the target screening range, it can be determined whether the geographical grid corresponding to the location of the client and at least one geographical grid around the geographical grid can cover the target screening range, until the minimum grid set that can cover the target screening range is screened out.

[0073] 102c. From all the cache locations stored in the minimum grid set, at least one cache location with a distance less than or equal to the target query radius from the location of the client is determined.

[0074] Exemplarily, the geographical grid in the minimum grid set stores the longitude and latitude coordinates of the location point corresponding to the page cache data. Therefore, from all the cache locations stored in the minimum grid set, at least one cache location with longitude and latitude coordinates satisfying the distance condition (the distance from the location of the client is less than or equal to the target query radius) is determined.

[0075] 102d. From the in-memory database, at least one page cache data corresponding to the at least one cache location is determined.

[0076] The at least one cache location and the at least one page cache data correspond to each other in one-to-one correspondence.

[0077] The in-memory database can be a Redis-based database, or can be other databases, which are not limited here.

[0078] 102e. From the at least one page cache data, the target page cache data within the target cache validity period is determined.

[0079] In some embodiments of the present disclosure, the target page cache data that passes the data legitimacy verification can be determined from the at least one page cache data through the data legitimacy verification.

[0080] The data legitimacy verification can include whether the page cache data is within the cache validity period, and can also include whether any resource information (such as commodity information) included in the page cache data has enforceability, which is not limited here.

[0081] In some embodiments of the present disclosure, the target page cache data is the page cache data in the cache valid period, and the corresponding cache location is the closest to the location of the client. The smaller the distance between the corresponding cache location and the location of the client, the stronger the service performance of the target page cache data for the client at the location. Therefore, taking the page cache data corresponding to the cache location closest to the location of the client as the target page cache data can effectively ensure the service performance of the target page resource based on the target page cache data.

[0082] In some embodiments of the present disclosure, the geographic cache data is obtained by accessing the page real data of the target page through the real data interface.

[0083] For example, after the server obtains the page real data 1 of the target application corresponding to the client 1 (which can be the page real data 1 generated by the server in response to the real data pre-request, or the page real data 1 received by the server from the client), the page real data 1 can be used to update the geographic cache data as a new page cache data 1. For example, the geographic cache data can include coordinate conversion according to the latitude and longitude coordinates 1 of the location point of the client 1, determination of the grid code 1, saving the latitude and longitude coordinates 1 to the geographic grid 1 corresponding to the grid code 1, and then storing the page real data 1 and the latitude and longitude coordinates 1 in the cache database.

[0084] Currently, the daily access volume (average daily page views) of some applications limited by the service performance of the location service is high, and the Queries Per Second (QPS) is also high. The daily access volume of some applications limited by the service performance of the location service is relatively low, and the QPS is also relatively low. Therefore, the daily access volume and the QPS of different applications are not in the same order of magnitude. Therefore, how to ensure the cache hit rate under the condition of low daily access volume and low QPS is a problem to be solved.

[0085] In some embodiments of the present disclosure, the cache valid period and the query area directly affect the cache hit rate. If the cache valid period is short and the query area is small, it is easy to miss the cache. If the cache valid period is long and the query area is large, the cache service performance will be reduced. Therefore, how to determine a reasonable cache valid period and query area is a decisive factor for ensuring high cache hit rate and cache service performance.

[0086] To solve the above technical problems, in the embodiments of the present disclosure, the normal access volume formula (the second access volume formula as follows) and the access volume formula of the peak period and hot area (the first access volume formula as follows) are defined to reasonably determine the cache valid period and the query area. Other feasible access volume formulas can also be defined, which are not limited here.

[0087] Wherein, the city population has the gathering characteristic, and the use time period distribution presents the trough shape. The user will not be evenly distributed in space and time, and therefore the cache strategy of exploring the peak time and hot spot area is more effective.

[0088] In some embodiments of the present disclosure, the target query radius comprises a first query radius, the target cache validity period comprises a first cache validity period, the product of the first query radius and the first cache validity period is greater than or equal to the ratio of a first access amount value to a target product, the target product is the product of a peak time dense coefficient, a first query area, a central area dense coefficient and an access times reference unit, the peak time dense coefficient is the ratio of the access times per unit time in the peak time to the access times per unit time in the whole day, the central area dense coefficient is the ratio of the population per unit area in the central area to the population per unit area in the city, the first query area is the area of a circular region with the first query radius as the radius, the first access amount value is greater than 1, and the access times reference unit is the access times per unit time per unit area.

[0089] In some embodiments of the present disclosure, the target query radius comprises a second query radius, the target cache validity period comprises a second cache validity period, the product of the second query radius and the second cache validity period is greater than or equal to the ratio of a second access amount value to an access times reference unit, the second query area is the area of a circular region with the second query radius as the radius, the second access amount value is greater than 1, and the access times reference unit is the access times per unit time per unit area.

[0090] Wherein, the first cache validity period is less than the second cache validity period, and the first query radius is less than the second query radius.

[0091] Wherein, the first access amount value and the second access amount value can be determined according to actual conditions, the first access amount value and the second access amount value can be the same or different, which is not limited here, for example, the first access amount value and the second access amount value are both 1.

[0092] In some embodiments of the present disclosure, the peak time dense coefficient can be the peak time dense coefficient of all supply areas (ignoring regional differences), and accordingly, the access times per unit time in the peak time is the access times per unit time in the peak time corresponding to all supply areas, and the access times per unit time in the whole day is the access times per unit time in the whole day corresponding to all supply areas.

[0093] In some embodiments of the present disclosure, the peak period intensive coefficient can be the peak period intensive coefficient of the partial supply area (considering regional differences), and accordingly, the unit time access number in the peak period is the unit time access number of the corresponding peak period of the partial supply area, and the unit time access number of the whole day is the unit time access number of the corresponding whole day of the partial supply area.

[0094] In some embodiments of the present disclosure, a second access amount formula can be defined to calculate the second access amount, as follows:

[0095] Second access amount = second cache validity period * second query area * access number reference unit.

[0096] Among them, the second cache validity period: unit is hour, abbreviated as h; the second query area: unit is square kilometer, abbreviated as s; the access number reference unit: access number per hour, per square kilometer.

[0097] Here, the second access amount > 1, in the statistical sense, it can be ensured that new access will be added within the cache validity period, so as to update the cache and achieve a high cache hit rate.

[0098] Example 1, the daily average page access amount of the instant retail application supply area is 222.2 million, the total area is 333 million square kilometers, the access number reference unit is equal to 22.22 / (33.3*24) = 0.0278, and the formula is converted to h*s*0.0278>1; here, h=7, s=π*1.282, which meets the condition, that is, the second cache validity period is 7 hours, and the second query radius is 1.28km.

[0099] In some embodiments of the present disclosure, a first access amount formula can be defined to calculate the second access amount, as follows:

[0100] First access amount = first cache validity period * peak period intensive coefficient * first query area * central area intensive coefficient * access number reference unit.

[0101] Among them, the first cache validity period: unit is hour, abbreviated as h; the first query area: unit is square kilometer, abbreviated as s; the access number reference unit: access number per hour, per square kilometer; the peak period intensive coefficient = (peak period access amount / peak time period) / (total access amount / total time period); the central area intensive coefficient = (central area permanent population / central area area) / (total urban permanent population / total urban area).

[0102] Example 2, based on the above example 1, taking the peak period dense coefficient as 1.2345 and the central area dense coefficient as 6.666 as an example, the formula is transformed into h*1.2345*s*6.666*0.0278>1, where h is defined as 5, s is defined as π*0.532, which satisfies the condition, that is, the first cache valid period is 5 hours, and the first query radius is 0.53km.

[0103] In the embodiments of the present disclosure, by defining the first access amount formula, and in the case that the first access amount is greater than the first access amount value, the first cache valid period and the first query radius are reasonably determined, for the peak period & hotspot area scene, the target query strategy determined based on the first cache valid period and the first query radius can effectively improve the cache hit rate and the cache fulfillability.

[0104] In the embodiments of the present disclosure, by defining the second access amount formula, and in the case that the second access amount is greater than the second access amount value, the second cache valid period and the second query radius are reasonably determined, for the normal scene, the target query strategy determined based on the second cache valid period and the second query radius can effectively improve the cache hit rate and the cache fulfillability.

[0105] In some embodiments of the present disclosure, the query strategy determined based on the first cache valid period and the first query radius, and the query strategy determined based on the second cache valid period and the second query radius can be queried in parallel, further ensuring a high cache hit rate.

[0106] In some embodiments of the present disclosure, the above step 102 can be implemented by the following steps 102f to 102h.

[0107] 102f, query the geographic cache data based on the first query strategy and the second query strategy respectively, to obtain a first query result corresponding to the first query strategy and a second query result corresponding to the second query strategy.

[0108] Wherein, the first query strategy includes a first query radius and a first query area, and the second query strategy includes a second query strategy and a second query area.

[0109] 102g, in the case that the first query result is not empty, determining the target cache location and the target page cache data corresponding to the target cache location from the first query result.

[0110] 102h, in the case that the second query result is empty, determining the target cache location and the target page cache data corresponding to the target cache location from the second query result.

[0111] In the embodiments of the present disclosure, the geographic cache data is queried by the first query strategy and the second query strategy at the same time, that is, while searching for the cache according to the geographic cache strategy of the peak period & hot area, the range is expanded to search for the cache according to the normal geographic cache strategy as alternative data. In this way, while meeting the more accurate cache data of the peak period & hot area, a higher cache hit rate can also be ensured.

[0112] In some embodiments of the present disclosure, the target page structure is complex, and the page modules of different crowds (such as new and old customers) are quite different. If the same page cache data is read, the page is rendered, and then the real page data is rendered, because the page module corresponding to the page cache data is different from the page module of the real page data, when the target page based on the page cache data is updated to the target page based on the real page data, page jitter may occur, affecting the user experience.

[0113] In the embodiments of the present disclosure, the server-side real-time query cache interface receives the user state corresponding to the geographic cache pre-request to determine the end-to-end query time of the client to obtain the corresponding real page data of each module of the target page, and whether each module is associated with user personal information features (that is, whether it requires personalization), and then determine the query method of the data corresponding to each module to ensure that the target page structure is stable and does not jitter.

[0114] Among them, the target of the page cache data is to achieve millisecond-level rendering, so the query time of the page cache data of each module needs to be strictly limited, and the query time of the real page data of each module also needs to be strictly limited, which cannot become a card point of the rendering link.

[0115] Through data exploration in the development stage, at present, the sum of the container startup time and the js environment initialization time of the user in the page initialization stage of the instant retail consumption end of the client is greater than or equal to the time threshold, and the cache interface initiates a geographic cache pre-request through nativePrefetch (client pre-request) and executes in parallel with the above page initialization stage. Therefore, the longest end-to-end time of the cache interface is defined as the time threshold, which ensures that the page cache data can be consumed when the js logic is executed, and the second opening effect is achieved.

[0116] Exemplarily, the time threshold can be 120ms, which can be determined according to actual conditions, and is not limited here.

[0117] In some embodiments of the present disclosure, each module of the target page can be split according to two dimensions of the end-to-end query time of the client to obtain the corresponding real page data of each module of the target page and whether each module is associated with user personal information features.

[0118] The module is associated with a user personal information feature, that is, the rendering of the module needs to use the user personal information feature, which can be directly rendered using the user personal information feature, or can be rendered based on the user personal information feature to match personalized module data, which is not limited here.

[0119] Exemplarily, the query mode of the module corresponding to the client obtaining real page data of the target page can be determined as real-time query if an end-to-end query time of the real page data is less than or equal to a time threshold, that is, real-time query real page data is used as response data of the geographic cache pre-request; the query mode of the module corresponding to the client obtaining real page data of the target page can be determined as geographic cache query if an end-to-end query time of the real page data is greater than the time threshold and the module is not associated with a user personal information feature, that is, geographic cache query page cache data is used as response data of the geographic cache pre-request; the query mode of the module corresponding to the client obtaining real page data of the target page can be determined as a skeleton screen query if an end-to-end query time of the real page data is greater than the time threshold and the module is associated with a user personal information feature, that is, skeleton screen query skeleton screen data (that is, module framework data) is used as response data of the geographic cache pre-request.

[0120] In some embodiments of the present disclosure, the above step 102 can be implemented through the following steps 102i to step 102j.

[0121] 102i, in response to the geographic cache pre-request, determining that the target page includes at least one first module.

[0122] The client obtains real page data corresponding to the first module through an end-to-end query, and the end-to-end query time is greater than or equal to a time threshold, and the first module is not associated with a user personal information feature.

[0123] 102j, based on the target query strategy, determining the target cache location from the geographic cache data and the target page cache data corresponding to the at least one first module.

[0124] The target page cache data includes at least one first module corresponding to the page cache data.

[0125] In the embodiments of the present disclosure, in response to the geographic cache pre-request, in the case that the target page includes at least one first module, the target page cache data corresponding to the at least one first module is used as response data of the geographic cache pre-request, so that the end-to-end query time of the client obtaining the target page cache data can be guaranteed to be less than or equal to the time threshold, and the target page cache data can be consumed for target page rendering after the page initialization is completed, achieving the effect of second opening.

[0126] In some embodiments of the present disclosure, the page data acquisition method provided by the embodiments of the present disclosure can further include steps 104 to 106.

[0127] 104. In response to the geographic cache pre-request, it is determined that the target page includes at least one second module.

[0128] The end-to-end query time of the client for obtaining the real page data corresponding to the second module is less than the time threshold.

[0129] 105. Obtain target real page data corresponding to the at least one second module.

[0130] The target real page data includes real page data corresponding to the at least one second module respectively.

[0131] 106. Return the target real page data to the client, so that the client displays the target page based on the target real page data.

[0132] In response to the geographic cache pre-request, in the case where the target page includes at least one second module, the target real page data corresponding to the at least one second module is used as the response data of the geographic cache pre-request. In this way, it can be ensured that the end-to-end query time of the client for obtaining the target real page data is less than or equal to the time threshold, and it can be ensured that the target real page data can be consumed for target page rendering after the page initialization is completed, achieving the effect of second opening.

[0133] In some embodiments of the present disclosure, the page data acquisition method provided by the embodiments of the present disclosure can further include steps 107 to 109.

[0134] 107. In response to the geographic cache pre-request, it is determined that the target page includes at least one third module.

[0135] The end-to-end query time of the client for obtaining the real page data corresponding to the third module is greater than or equal to the time threshold, and the third module is associated with user personal information features.

[0136] 108. Obtain module framework data corresponding to the at least one third module.

[0137] The module framework data includes at least one module framework corresponding to the at least one third module respectively.

[0138] The module framework is a placeholder graphic displayed in the page content loading process, and is used to represent the framework structure of each module of the page. Therefore, the module framework data does not include resource data, and the data is blank.

[0139] 109、return the module framework data to the client, so that the client displays the target page based on the module framework data.

[0140] In the embodiments of the present disclosure, in response to the geographic cache pre-request, when the target page includes at least one third module, the module framework data corresponding to the at least one third module is taken as the response data of the geographic cache pre-request, so that the end-to-end query time of the client obtaining the module framework data can be ensured to be less than or equal to the time threshold, and the module framework data can be consumed for target page rendering after the page initialization is completed, so as to achieve the second opening effect.

[0141] In some embodiments of the present disclosure, when the target page includes at least two of the first module, the second module and the third module, the response data corresponding to different modules can be assembled to generate target page data before the response data is returned to the client, and then the target page data is returned to the client, so that the client displays the target page based on the target page data.

[0142] For example, the target page includes at least one first module, at least one second module and at least one third module, the target page cache data, the target real page data and the module framework data are assembled to generate target page data, and the target page data is returned to the client.

[0143] For example, the target page includes at least one first module and at least one second module, the target page cache data and the target real page data are assembled to generate target page data, and the target page data is returned to the client.

[0144] In some embodiments of the present disclosure, the server for at least one cache location query, the server for cache database management, the server for at least one page cache data query and the server for page real data query can be the same server or different servers, which is not limited here.

[0145] In some embodiments of the present disclosure, the time threshold is less than or equal to the minimum time of the client for page initialization of the target page.

[0146] As shown in FIG. 2, in some embodiments of the present disclosure, a page data acquisition method is provided, which is applied to a client, and the method includes the following steps 201 to 203.

[0147] 201、sending a geographic cache pre-request to a server.

[0148] The geographic cache pre-request is used to request the page cache data of the target page of the target application, and the content displayed by the target page of the target application is limited by the performance range of the location service.

[0149] 202、receive the target page cache data returned by the server.

[0150] The target page cache data is determined from the geographic cache data based on a target query strategy in response to the geographic cache pre-request, and the target cache location corresponding to the target page cache data matches the location of the client. The target query strategy includes a target query radius, and the distance between the target cache location and the location of the client is less than or equal to the target query radius. The geographic cache data includes a plurality of cache locations and a plurality of page cache data corresponding to the plurality of cache locations, respectively. The page cache data is the real page data of the target page displayed by the client at the corresponding cache location before the geographic cache pre-request.

[0151] 203、display the target page based on the target page cache data.

[0152] In some embodiments of the present disclosure, the page data acquisition method provided by the embodiments of the present disclosure can further include the following step 204. The step 203 can be implemented by the following step 203a or step 203b. Alternatively, after the step 204, the page data acquisition method provided by the embodiments of the present disclosure can further include the following step 205.

[0153] 204、send a real data pre-request to the server, the real data pre-request being used to request real page data of the target page.

[0154] The step 204 is executed in parallel with the step 201, that is, the geographic cache pre-request and the real data pre-request are sent to the server at the same time.

[0155] 203a、in the case that the received real page data of the target page is abnormal, display the target page based on the target page cache data.

[0156] The abnormal real page data of the target page indicates that the real data interface is faulty and the target page cannot be displayed based on the real page data of the target page.

[0157] The step 203a includes, in the case that the target page is currently displayed based on the local page cache data, updating the target page based on the target page cache data if the received real page data of the target page is abnormal. In the case that the target page is currently displayed based on the target page cache data, the target page is kept updated based on the target page cache data if the received real page data of the target page is abnormal.

[0158] In the embodiments of the present disclosure, when the real page data of the target page is abnormal, the target page cache data is used to display the target page as the bottom data, whether the user is a first-time visitor or a second-time visitor, so as to meet the user demand, improve the user interest, and improve the user experience.

[0159] 203b, before receiving the real page data of the target page returned by the server, displaying the target page based on the target page cache data.

[0160] In the embodiments of the present disclosure, before receiving the real page data of the target page returned by the server, the target page is displayed based on the target page cache data, so that the page loading speed can be improved, the page can be opened in seconds, the white screen jump loss rate can be effectively reduced, the body feeling second opening rate can be improved, and the user experience can be improved.

[0161] 205, before displaying the target page based on the received target page cache data, receiving the real page data of the target page returned by the server, discarding the target page cache data, and displaying the target page based on the real page data of the target page.

[0162] In the embodiments of the present disclosure, the client receives the target page cache data later than the real page data of the target page, discards the target page cache data, and directly displays the target page based on the real page data of the target page, so that unnecessary target page update can be avoided, the real page data of the target page that is more suitable for the user can be displayed in time, the user experience can be improved, and the user experience can be improved.

[0163] In some embodiments of the present disclosure, the page data acquisition method provided by the embodiments of the present disclosure can further include steps 206 and 207 as follows, and the above step 203 can be implemented by step 203c as follows.

[0164] 206, determining whether the local page cache data corresponding to the target page exists in the client.

[0165] 207, in the case that the local page cache data corresponding to the target page exists in the client, displaying the target page based on the local page cache data.

[0166] 203c, in the case that the local page cache data corresponding to the target page does not exist in the client, displaying the target page based on the target page cache data.

[0167] In the embodiments of the present disclosure, in a case where the local page cache data corresponding to the target page exists in the client, the target page is displayed based on the local page cache data, and in a case where the local page cache data corresponding to the target page does not exist in the client, the target page is displayed based on the target page cache data. In this way, the target page can be displayed for the user more timely, and the user experience can be improved.

[0168] In some embodiments of the present disclosure, in a case where the local page cache data corresponding to the target page exists in the client, it can be determined according to actual use requirements whether the target page is displayed based on the local page cache data or based on the target page cache data, which is not limited here.

[0169] In some embodiments of the present disclosure, in a case where the target page cache data is not hit and the local page cache data exists in the client, the target page is displayed based on the local page cache data, and then in a case where the real page data of the target page is abnormal, the target page displayed based on the local page cache data is updated to a blank page. In this way, the poor user experience caused by the unfulfillment of the resource information of the local page cache data is avoided.

[0170] In some embodiments of the present disclosure, the page data acquisition method provided by the embodiments of the present disclosure is designed into a general cache data acquisition hierarchical model in the client, including: an access layer, configured to initialize a software development kit (SDK) configuration and process data returned by the SDK; an application layer SDK, configured to inherit a core layer abstract class, encapsulate instant retail business attributes and public methods, support instant retail fields horizontally, reduce access cost, and achieve out-of-box use; and a core layer SDK, configured to encapsulate real and cache data acquisition logic, provide capabilities such as prefetching, burying point exploration, and exception bottoming, and support other c-end business scenarios horizontally.

[0171] FIG. 3 is a structural block diagram of a page data acquisition apparatus according to an embodiment of the present disclosure. As shown in FIG. 3, the page data acquisition apparatus comprises a receiving module 301, configured to receive a geographic cache pre-request sent by a client, the geographic cache pre-request being used to request page cache data of a target page of a target application; a determining module 302, configured to, in response to the geographic cache pre-request, determine, based on a target query strategy, a target cache location matching a location of the client from geographic cache data, and target page cache data corresponding to the target cache location, the target query strategy comprising a target query radius, the target cache location being located at a distance less than or equal to the target query radius from the location of the client, the geographic cache data comprising a plurality of cache locations and a plurality of page cache data respectively corresponding to the plurality of cache locations, the page cache data being real page data of the target page displayed by a client at a corresponding cache location before the geographic cache pre-request; and a sending module 303, configured to return the target page cache data to the client.

[0172] In some embodiments of the present disclosure, the target query strategy further comprises a target cache validity period, the plurality of cache locations are stored in a geographic grid database, and the plurality of page cache data are stored in a memory database; the determining module 302 is specifically configured to, in response to the geographic cache pre-request, determine a grid code of a geographic grid corresponding to the location of the client; determine, based on the grid code, a minimum grid set covering a target filtering range in the geographic grid database, the center of the target filtering range being the location of the client, and the radius of the target filtering range being the target query radius; determine, from all cache locations stored in the minimum grid set, at least one cache location located at a distance less than or equal to the target query radius from the location of the client; determine, from the memory database, at least one page cache data respectively corresponding to the at least one cache location; and determine, from the at least one page cache data, the target page cache data within the target cache validity period.

[0173] In some embodiments of the present disclosure, the target query radius includes a first query radius, the target cache validity period includes a first cache validity period, a product of the first query radius and the first cache validity period is greater than or equal to a ratio of a first access amount value and a target product, the target product is a product of a peak period intensive coefficient, a first query area, a central area intensive coefficient, and an access frequency reference unit, the peak period intensive coefficient is a ratio of an access frequency per unit time in a peak period to an access frequency per unit time in a whole day, the central area intensive coefficient is a ratio of a population per unit area in a central area to a population per unit area in a city, the first query area is an area of a circular region with the first query radius as a radius, and the first access amount value is greater than 1; and / or, the target query radius includes a second query radius, the target cache validity period includes a second cache validity period, a product of the second query radius and the second cache validity period is greater than or equal to a ratio of a second access amount value and the access frequency reference unit, a second query area is an area of a circular region with the second query radius as a radius, and the second access amount value is greater than 1; wherein the first cache validity period is less than the second cache validity period, the first query radius is less than the second query radius, and the access frequency reference unit is an access frequency per unit time per unit area.

[0174] In some embodiments of the present disclosure, the determination module 302 is specifically configured to query the geographic cache data based on a first query strategy and a second query strategy respectively to obtain a first query result corresponding to the first query strategy and a second query result corresponding to the second query strategy, the first query strategy includes a first query radius and a first query area, and the second query strategy includes a second query strategy and a second query area; in a case where the first query result is not empty, determining the target cache location and the target page cache data corresponding to the target cache location from the first query result; and in a case where the second query result is empty, determining the target cache location and the target page cache data corresponding to the target cache location from the second query result.

[0175] In some embodiments of the present disclosure, the determination module 302 is specifically configured to, in response to the geographic cache pre-request, determine that the target page includes at least one first module, an end-to-end query time of the client for obtaining real page data corresponding to the first module is greater than or equal to a time threshold, and the first module is not associated with a user personal information feature; based on the target query strategy, determining the target cache location and the target page cache data corresponding to the at least one first module from the geographic cache data.

[0176] In some embodiments of the present disclosure, the determining module 302 is further configured to, in response to the geographic cache pre-request, determine that the target page includes at least one second module, and that an end-to-end query time for the client to obtain real page data corresponding to the second module is less than a time threshold; the apparatus further includes an obtaining module configured to obtain target real page data corresponding to the at least one second module; and the sending module 303 is further configured to return the target real page data to the client, so that the client displays the target page based on the target real page data.

[0177] In some embodiments of the present disclosure, the determining module 302 is further configured to, in response to the geographic cache pre-request, determine that the target page includes at least one third module, and that an end-to-end query time for the client to obtain real page data corresponding to the third module is greater than or equal to a time threshold, and that the third module is associated with a user personal information feature; the apparatus further includes an obtaining module configured to obtain module framework data corresponding to the at least one third module; and the sending module 303 is further configured to return the module framework data to the client, so that the client displays the target page based on the module framework data.

[0178] In some embodiments of the present disclosure, the time threshold is less than or equal to a minimum time for the client to perform page initialization on the target page.

[0179] In the embodiments of the present disclosure, each module can implement the page data obtaining method provided in the above-mentioned method embodiments, and achieve the same technical effects. To avoid repetition, details are not described herein.

[0180] FIG. 4 is a structural block diagram of a page data obtaining apparatus according to an embodiment of the present disclosure. As shown in FIG. 4, the apparatus includes a sending module 401 configured to send a geographic cache pre-request to a server, the geographic cache pre-request being used to request page cache data of a target page of a target application; a receiving module 402 configured to receive target page cache data returned by the server, the target page cache data being target cache location and target page cache data corresponding to the target cache location, which are determined by the server from geographic cache data based on a target query strategy in response to the geographic cache pre-request, the target cache location matching a location of the client; the target query strategy includes a target query radius, and the distance between the target cache location and the location of the client is less than or equal to the target query radius; the geographic cache data includes a plurality of cache locations and a plurality of page cache data corresponding to the plurality of cache locations respectively; the page cache data is real page data of the target page displayed by a client at the corresponding cache location before the geographic cache pre-request; and a display module 403 configured to display the target page based on the target page cache data.

[0181] In some embodiments of the present disclosure, the sending module 401 is further configured to send a real data pre-request to the server, the real data pre-request being used to request real page data of the target page; the display module 403 is specifically configured to display the target page based on the target page cache data in a case where the received real page data of the target page is abnormal, or display the target page based on the target page cache data before receiving the real page data of the target page returned by the server; or the receiving module 402 is further configured to receive the real page data of the target page returned by the server before displaying the target page based on the received target page cache data, discard the target page cache data, and display the target page based on the real page data of the target page.

[0182] In some embodiments of the present disclosure, the apparatus further includes a determination module configured to determine whether local page cache data corresponding to the target page exists in the client; and the display module 403 is further configured to display the target page based on the local page cache data in a case where the local page cache data corresponding to the target page exists in the client; and the display module 403 is specifically configured to display the target page based on the target page cache data in a case where the local page cache data corresponding to the target page does not exist in the client.

[0183] In the embodiments of the present disclosure, each module can implement the page data acquisition method provided in the above-mentioned method embodiments, and achieve the same technical effects. To avoid repetition, details are not described herein.

[0184] FIG. 5 is a structural schematic diagram of a communication device provided in an embodiment of the present disclosure, which is used to exemplarily illustrate a communication device for implementing any page data acquisition method in the embodiments of the present disclosure, and should not be understood as a specific limitation on the embodiments of the present disclosure. The communication device described above can be the server or the client described above.

[0185] As shown in FIG. 5, the communication device 500 can include a processor (such as a central processor, a graphics processor, etc.) 501, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 502 or loaded from a storage device 508 to a random access memory (RAM) 503. In the RAM 503, various programs and data required for operation of the communication device 500 are also stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0186] Generally, the following devices can be connected to the I / O interface 505: input devices 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, and the like; output devices 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, and the like; storage devices 508 including, for example, a magnetic tape, a hard disk, and the like; and communication devices 509. The communication devices 509 can allow the communication device 500 to communicate wirelessly or wired with other devices to exchange data. While the communication device 500 is shown with various devices, it should be understood that all of the illustrated devices are not required to implement or have. More or less devices can alternatively be implemented or have.

[0187] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication devices 509, or installed from the storage devices 508, or installed from the ROM 502. When the computer program is executed by the processor 501, the functions defined in any of the page data acquisition methods provided by embodiments of the present disclosure can be performed.

[0188] It should be noted that the computer-readable medium described above can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, 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 thereof. In this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus or device. In this disclosure, the computer-readable signal medium can include a computer-readable program code in a baseband or propagated as a carrier wave in a propagated signal, where the computer-readable program code can be used by or in connection with an instruction execution system, apparatus or device. The propagated signal can take any suitable form, including but not limited to, an electromagnetic signal, an optical signal or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium that can be used to carry or store a program for use by or in connection with an instruction execution system, apparatus or device, except for the computer-readable storage media described above. The program code contained in the computer-readable medium can be transmitted or propagated using any suitable medium, including but not limited to, wire, cable, fiber optic, RF (radio frequency), or any suitable combination thereof.

[0189] In some embodiments, the client, server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communications of any form or medium (e.g., a communications network). Examples of communications networks include local area networks ("LANs"), wide area networks ("WANs"), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.

[0190] The computer-readable medium described above can be included in the communications device described above; or can exist separately from the communications device.

[0191] The computer readable medium carries one or more programs, when the one or more programs are executed by the server, the server is caused to: receive a geographic cache pre-request sent by a client, the geographic cache pre-request is used to request page cache data of a target page of a target application; in response to the geographic cache pre-request, based on a target query strategy, determine a target cache location matched with a location of the client from geographic cache data and target page cache data corresponding to the target cache location, the target query strategy comprises a target query radius, a distance between the target cache location and the location of the client is less than or equal to the target query radius, the geographic cache data comprises a plurality of cache locations and a plurality of page cache data corresponding to the plurality of cache locations respectively, the page cache data is real page data of the target page displayed by a client at a corresponding cache location before the geographic cache pre-request, and the target page cache data is returned to the client.

[0192] Alternatively, the computer readable medium carries one or more programs, when the one or more programs are executed by the client, the client is caused to: send a geographic cache pre-request to a server, the geographic cache pre-request is used to request page cache data of a target page of a target application; receive target page cache data returned by the server, the target page cache data is determined by the server in response to the geographic cache pre-request, based on a target query strategy, from geographic cache data, a target cache location matched with a location of the client and target page cache data corresponding to the target cache location, the target query strategy comprises a target query radius, a distance between the target cache location and the location of the client is less than or equal to the target query radius, the geographic cache data comprises a plurality of cache locations and a plurality of page cache data corresponding to the plurality of cache locations respectively, the page cache data is real page data of the target page displayed by a client at a corresponding cache location before the geographic cache pre-request, and the target page cache data is used to display the target page.

[0193] Computer program code for carrying out operations of the present disclosure can be written in any one or more of a variety of programming languages or combinations of languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on a computer, partly on the computer, as a stand-alone software package, partly on the computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0194] The computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0195] The units described in the embodiments of the present disclosure can be implemented by hardware, software, or a combination of hardware and software. In some cases, the names of the units do not constitute a limitation on the units themselves.

[0196] The functions described in this description above can be performed or facilitated by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

[0197] In the context of the present disclosure, a computer-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the computer-readable storage medium would include a tangible, non-transitory memory such as a portable computer diskette, 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.

[0198] The above description is only the preferred embodiment of the present disclosure and the explanation of the technical principles applied. It should be understood by those skilled in the art that the disclosure range involved in the present disclosure is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by the combinations of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the technical solutions formed by the mutual replacement of the above features and the technical features disclosed in the present disclosure (but not limited to) with similar functions.

[0199] In addition, although each operation is described in a particular order, this should not be understood as requiring the operations to be performed in the specific order shown or in a sequential order. In certain circumstances, multitasking and parallel processing can be advantageous. Similarly, although several implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments can also be combined in a single embodiment. Conversely, various features described in the context of a single embodiment can also be separated and implemented in multiple embodiments.

[0200] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims

1. A page data acquisition method applied to a server, wherein, The method comprises: receiving a geographic cache pre-request sent by a client, the geographic cache pre-request being used to request page cache data of a target page of a target application; in response to the geographic cache pre-request, determining, based on a target query strategy, a target cache location matching a location of the client from geographic cache data and target page cache data corresponding to the target cache location, the target query strategy comprising a target query radius, the target cache location being located at a distance less than or equal to the target query radius from the location of the client, the geographic cache data comprising a plurality of cache locations and a plurality of page cache data respectively corresponding to the plurality of cache locations, the page cache data being real page data of the target page displayed by a client at a corresponding cache location before the geographic cache pre-request; returning the target page cache data to the client.

2. The method of claim 1, wherein, The target query strategy further comprises a target cache validity period, the plurality of cache locations being stored in a geographic grid database, and the plurality of page cache data being stored in an in-memory database; the response to the geographic cache pre-request, the determination of the target cache location matching the location of the client from the geographic cache data and the target page cache data corresponding to the target cache location based on the target query strategy comprises: in response to the geographic cache pre-request, determining a grid code of a geographic grid corresponding to the location of the client; based on the grid code, determining a minimum grid set covering a target filtering range in the geographic grid database, the center of the target filtering range being the location of the client, and the radius of the target filtering range being the target query radius; from all cache locations stored in the minimum grid set, determining at least one cache location located at a distance less than or equal to the target query radius from the location of the client; from the in-memory database, determining at least one page cache data respectively corresponding to the at least one cache location; from the at least one page cache data, determining the target page cache data within the target cache validity period.

3. The method of claim 2, wherein, The target query radius comprises a first query radius, the target cache validity period comprises a first cache validity period, the product of the first query radius and the first cache validity period is greater than or equal to the ratio of a first access amount value to a target product, the target product being the product of a peak period intensive coefficient, a first query area, a central area intensive coefficient and an access frequency benchmark unit, the peak period intensive coefficient being the ratio of the access frequency per unit time in a peak period to the access frequency per unit time in a whole day, the central area intensive coefficient being the ratio of the population per unit area in a central area to the population per unit area in a city, the first query area being the area of a circular region with the first query radius as the radius, and the first access amount value being greater than 1; and / or, The target query radius comprises a second query radius, the target cache validity period comprises a second cache validity period, a product of the second query radius and the second cache validity period is greater than or equal to a ratio of a second access amount value and an access frequency reference unit, the second query area is an area of a circular region with the second query radius as a radius, and the second access amount value is greater than 1. The first cache validity period is less than the second cache validity period, the first query radius is less than the second query radius, and the access frequency reference unit is an access frequency per unit time per unit area.

4. The method according to any one of claims 1 to 3, wherein, The target query strategy comprises: The first query strategy comprises the first query radius and the first query area, and the second query strategy comprises the second query strategy and the second query area. In a case where the first query result is not empty, the target cache location and the target page cache data corresponding to the target cache location are determined from the first query result. In a case where the first query result is empty, the target cache location and the target page cache data corresponding to the target cache location are determined from the second query result.

5. The method according to any one of claims 1-3, wherein, The target query strategy comprises: In response to the geographic cache pre-request, it is determined that the target page comprises at least one first module, an end-to-end query time of the client for obtaining real page data corresponding to the first module is greater than or equal to a time threshold, and the first module is not associated with a user personal information feature. The target cache location and the target page cache data corresponding to the at least one first module are determined from the geographic cache data based on the target query strategy.

6. The method of any one of claims 1-5, further comprising: In response to the geographic cache pre-request, it is determined that the target page comprises at least one second module, an end-to-end query time of the client for obtaining real page data corresponding to the second module is less than a time threshold. Target real page data corresponding to the at least one second module is obtained. The target real page data is returned to the client.

7. The method of any one of claims 1-6, further comprising: In response to the geographic cache pre-request, it is determined that the target page comprises at least one third module, an end-to-end query time of the client for obtaining real page data corresponding to the third module is greater than or equal to a time threshold, and the third module is associated with a user personal information feature. Module framework data corresponding to the at least one third module is obtained. returning the module framework data to the client.

8. The method of any one of claims 5-7, wherein, The time-consuming threshold is less than or equal to a minimum time-consuming of page initialization of the target page by the client.

9. A page data acquisition method applied to a client, wherein, The method comprises: sending a geographic cache pre-request to a server, the geographic cache pre-request being used to request page cache data of a target page of a target application; receiving target page cache data returned by the server, the target page cache data being target cache location matching a location of the client and target page cache data corresponding to the target cache location, which are determined from geographic cache data by the server based on a target query strategy in response to the geographic cache pre-request, the target query strategy comprising a target query radius, a distance between the target cache location and the location of the client being less than or equal to the target query radius, the geographic cache data comprising a plurality of cache locations and a plurality of page cache data corresponding to the plurality of cache locations respectively, the page cache data being real page data of the target page displayed by a client at a corresponding cache location before the geographic cache pre-request; displaying the target page based on the target page cache data.

10. The method of claim 9, further comprising: sending a real data pre-request to a server, the real data pre-request being used to request real page data of the target page; the displaying the target page based on the target page cache data comprises: displaying the target page based on the target page cache data in a case where the received real page data of the target page is abnormal, or displaying the target page based on the target page cache data before receiving the real page data of the target page returned by the server; or, the method further comprises: receiving the real page data of the target page returned by the server before displaying the target page based on the received target page cache data, discarding the target page cache data, and displaying the target page based on the real page data of the target page.

11. The method of claim 9 or 10, further comprising: determining whether local page cache data corresponding to the target page exists in the client; displaying the target page based on the local page cache data in a case where the local page cache data corresponding to the target page exists in the client; the displaying the target page based on the target page cache data comprises: displaying the target page based on the target page cache data in a case where the local page cache data corresponding to the target page does not exist in the client.

12. A page data acquisition apparatus, comprising: a receiving module configured to receive a geographic cache pre-request sent by a client, the geographic cache pre-request being used to request page cache data of a target page of a target application; determining, in response to the geographic cache pre-request, target cache location matching the location of the client and target page cache data corresponding to the target cache location from geographic cache data based on a target query strategy; the target query strategy comprising a target query radius, the distance between the target cache location and the location of the client being less than or equal to the target query radius; the geographic cache data comprising a plurality of cache locations and a plurality of page cache data corresponding to the plurality of cache locations respectively; the page cache data being real page data of the target page displayed by a client at the corresponding cache location before the geographic cache pre-request; sending the target page cache data to the client. 13.A page data obtaining apparatus, comprising: a sending module configured to send a geographic cache pre-request to a server, the geographic cache pre-request being used to request page cache data of a target page of a target application; a receiving module configured to receive target page cache data returned by the server, the target page cache data being target cache location matching the location of the client and target page cache data corresponding to the target cache location determined by the server in response to the geographic cache pre-request from geographic cache data based on a target query strategy; the target query strategy comprising a target query radius, the distance between the target cache location and the location of the client being less than or equal to the target query radius; the geographic cache data comprising a plurality of cache locations and a plurality of page cache data corresponding to the plurality of cache locations respectively; the page cache data being real page data of the target page displayed by a client at the corresponding cache location before the geographic cache pre-request; a display module configured to display the target page based on the target page cache data.

14. A communication device comprising: a memory and a processor, the memory being configured to store a computer program; the processor being configured to execute the page data obtaining method in any of claims 1-11 when the computer program is invoked.

15. A computer readable storage medium having stored thereon a computer program, wherein, the computer program, when executed by the processor, implements the page data obtaining method in any of claims 1-11.

16. A computer program product comprising a computer program, wherein, the computer program, when executed by the processor, implements the page data obtaining method in any of claims 1-11. the computer program, when executed by the processor, implements the page data obtaining method in any of claims 1-11.

Citation Information

Patent Citations

  • Method and device for information processing

    CN103312733A

  • Data processing method and device based on map caching technology and electronic device

    CN115033656A

  • Page data acquisition method and device, communication equipment, storage medium and program product

    CN119226639A

  • Geo-Fence Pre-Caching Systems and Methods for Providing Location-Variant Results

    US20170192981A1