@wix/auto_sdk_cache_cache 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/ssr-v1-invalidate-cache-request-cache.http.d.ts +2 -3
- package/build/cjs/src/ssr-v1-invalidate-cache-request-cache.http.js +2 -3
- package/build/cjs/src/ssr-v1-invalidate-cache-request-cache.http.js.map +1 -1
- package/build/cjs/src/ssr-v1-invalidate-cache-request-cache.public.d.ts +2 -3
- package/build/cjs/src/ssr-v1-invalidate-cache-request-cache.universal.d.ts +2 -3
- package/build/cjs/src/ssr-v1-invalidate-cache-request-cache.universal.js +2 -3
- package/build/cjs/src/ssr-v1-invalidate-cache-request-cache.universal.js.map +1 -1
- package/build/es/src/ssr-v1-invalidate-cache-request-cache.http.d.ts +2 -3
- package/build/es/src/ssr-v1-invalidate-cache-request-cache.http.js +2 -3
- package/build/es/src/ssr-v1-invalidate-cache-request-cache.http.js.map +1 -1
- package/build/es/src/ssr-v1-invalidate-cache-request-cache.public.d.ts +2 -3
- package/build/es/src/ssr-v1-invalidate-cache-request-cache.universal.d.ts +2 -3
- package/build/es/src/ssr-v1-invalidate-cache-request-cache.universal.js +2 -3
- package/build/es/src/ssr-v1-invalidate-cache-request-cache.universal.js.map +1 -1
- package/build/internal/cjs/src/ssr-v1-invalidate-cache-request-cache.http.d.ts +2 -3
- package/build/internal/cjs/src/ssr-v1-invalidate-cache-request-cache.http.js +2 -3
- package/build/internal/cjs/src/ssr-v1-invalidate-cache-request-cache.http.js.map +1 -1
- package/build/internal/cjs/src/ssr-v1-invalidate-cache-request-cache.public.d.ts +2 -3
- package/build/internal/cjs/src/ssr-v1-invalidate-cache-request-cache.universal.d.ts +2 -3
- package/build/internal/cjs/src/ssr-v1-invalidate-cache-request-cache.universal.js +2 -3
- package/build/internal/cjs/src/ssr-v1-invalidate-cache-request-cache.universal.js.map +1 -1
- package/build/internal/es/src/ssr-v1-invalidate-cache-request-cache.http.d.ts +2 -3
- package/build/internal/es/src/ssr-v1-invalidate-cache-request-cache.http.js +2 -3
- package/build/internal/es/src/ssr-v1-invalidate-cache-request-cache.http.js.map +1 -1
- package/build/internal/es/src/ssr-v1-invalidate-cache-request-cache.public.d.ts +2 -3
- package/build/internal/es/src/ssr-v1-invalidate-cache-request-cache.universal.d.ts +2 -3
- package/build/internal/es/src/ssr-v1-invalidate-cache-request-cache.universal.js +2 -3
- package/build/internal/es/src/ssr-v1-invalidate-cache-request-cache.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
|
9
9
|
*
|
|
10
10
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
11
11
|
*
|
|
12
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
12
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
13
13
|
*
|
|
14
14
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
15
15
|
*
|
|
@@ -18,7 +18,6 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
|
18
18
|
* >**Notes:**
|
|
19
19
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
20
20
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
21
|
-
*
|
|
22
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
21
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
23
22
|
*/
|
|
24
23
|
export declare function invalidateCache(payload: object): RequestOptionsFactory<any>;
|
|
@@ -24,7 +24,7 @@ const PACKAGE_NAME = '@wix/auto_sdk_cache_cache';
|
|
|
24
24
|
*
|
|
25
25
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
26
26
|
*
|
|
27
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
27
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
28
28
|
*
|
|
29
29
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
30
30
|
*
|
|
@@ -33,8 +33,7 @@ const PACKAGE_NAME = '@wix/auto_sdk_cache_cache';
|
|
|
33
33
|
* >**Notes:**
|
|
34
34
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
35
35
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
36
|
-
*
|
|
37
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
36
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
38
37
|
*/
|
|
39
38
|
function invalidateCache(payload) {
|
|
40
39
|
function __invalidateCache({ host }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.http.js","sourceRoot":"","sources":["../../../src/ssr-v1-invalidate-cache-request-cache.http.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAI3D,SAAS,8DAA8D,CACrE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,2BAA2B,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.http.js","sourceRoot":"","sources":["../../../src/ssr-v1-invalidate-cache-request-cache.http.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAI3D,SAAS,8DAA8D,CACrE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,2BAA2B,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,eAAe,CAAC,OAAe;IAC7C,SAAS,iBAAiB,CAAC,EAAE,IAAI,EAAO;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,qCAAqC;YACjD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,2EAA2E;YAC7E,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,8DAA8D,CAAC;gBAClE,SAAS,EAAE,sBAAsB;gBACjC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AApBD,0CAoBC"}
|
|
@@ -15,7 +15,7 @@ interface InvalidateCacheSignature {
|
|
|
15
15
|
*
|
|
16
16
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
17
17
|
*
|
|
18
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
18
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
19
19
|
*
|
|
20
20
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
21
21
|
*
|
|
@@ -24,8 +24,7 @@ interface InvalidateCacheSignature {
|
|
|
24
24
|
* >**Notes:**
|
|
25
25
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
26
26
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
27
|
-
*
|
|
28
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
27
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
29
28
|
* @param - An array of objects containing a `tag` field used to identify the cache to invalidate. All cached return values with any listed tags are invalidated. If no tags are specified, nothing is invalidated.
|
|
30
29
|
*/
|
|
31
30
|
(invalidationMethods: InvalidationMethods[]): Promise<void>;
|
|
@@ -23,7 +23,7 @@ export interface InvalidateCacheResponse {
|
|
|
23
23
|
*
|
|
24
24
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
25
25
|
*
|
|
26
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
26
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
27
27
|
*
|
|
28
28
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
29
29
|
*
|
|
@@ -32,8 +32,7 @@ export interface InvalidateCacheResponse {
|
|
|
32
32
|
* >**Notes:**
|
|
33
33
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
34
34
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
35
|
-
*
|
|
36
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
35
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
37
36
|
* @param invalidationMethods - An array of objects containing a `tag` field used to identify the cache to invalidate. All cached return values with any listed tags are invalidated. If no tags are specified, nothing is invalidated.
|
|
38
37
|
* @public
|
|
39
38
|
* @documentationMaturity preview
|
|
@@ -37,7 +37,7 @@ const ambassadorWixSsrV1InvalidateCacheRequest = __importStar(require("./ssr-v1-
|
|
|
37
37
|
*
|
|
38
38
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
39
39
|
*
|
|
40
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
40
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
41
41
|
*
|
|
42
42
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
43
43
|
*
|
|
@@ -46,8 +46,7 @@ const ambassadorWixSsrV1InvalidateCacheRequest = __importStar(require("./ssr-v1-
|
|
|
46
46
|
* >**Notes:**
|
|
47
47
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
48
48
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
49
|
-
*
|
|
50
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
49
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
51
50
|
* @param invalidationMethods - An array of objects containing a `tag` field used to identify the cache to invalidate. All cached return values with any listed tags are invalidated. If no tags are specified, nothing is invalidated.
|
|
52
51
|
* @public
|
|
53
52
|
* @documentationMaturity preview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.universal.js","sourceRoot":"","sources":["../../../src/ssr-v1-invalidate-cache-request-cache.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAAgG;AAEhG,0HAA4G;AAqB5G
|
|
1
|
+
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.universal.js","sourceRoot":"","sources":["../../../src/ssr-v1-invalidate-cache-request-cache.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAAgG;AAEhG,0HAA4G;AAqB5G;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACI,KAAK,UAAU,eAAe,CACnC,mBAA0C;IAE1C,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,mBAAmB,EAAE,mBAAmB;KACzC,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,wCAAwC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAEpE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE;YACzD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,qBAAqB,CAAC,CACxB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAlCD,0CAkCC"}
|
|
@@ -9,7 +9,7 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
|
9
9
|
*
|
|
10
10
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
11
11
|
*
|
|
12
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
12
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
13
13
|
*
|
|
14
14
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
15
15
|
*
|
|
@@ -18,7 +18,6 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
|
18
18
|
* >**Notes:**
|
|
19
19
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
20
20
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
21
|
-
*
|
|
22
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
21
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
23
22
|
*/
|
|
24
23
|
export declare function invalidateCache(payload: object): RequestOptionsFactory<any>;
|
|
@@ -21,7 +21,7 @@ const PACKAGE_NAME = '@wix/auto_sdk_cache_cache';
|
|
|
21
21
|
*
|
|
22
22
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
23
23
|
*
|
|
24
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
24
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
25
25
|
*
|
|
26
26
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
27
27
|
*
|
|
@@ -30,8 +30,7 @@ const PACKAGE_NAME = '@wix/auto_sdk_cache_cache';
|
|
|
30
30
|
* >**Notes:**
|
|
31
31
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
32
32
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
33
|
-
*
|
|
34
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
33
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
35
34
|
*/
|
|
36
35
|
export function invalidateCache(payload) {
|
|
37
36
|
function __invalidateCache({ host }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.http.js","sourceRoot":"","sources":["../../../src/ssr-v1-invalidate-cache-request-cache.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,8DAA8D,CACrE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,2BAA2B,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.http.js","sourceRoot":"","sources":["../../../src/ssr-v1-invalidate-cache-request-cache.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,8DAA8D,CACrE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,2BAA2B,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,SAAS,iBAAiB,CAAC,EAAE,IAAI,EAAO;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,qCAAqC;YACjD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,2EAA2E;YAC7E,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,8DAA8D,CAAC;gBAClE,SAAS,EAAE,sBAAsB;gBACjC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC"}
|
|
@@ -15,7 +15,7 @@ interface InvalidateCacheSignature {
|
|
|
15
15
|
*
|
|
16
16
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
17
17
|
*
|
|
18
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
18
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
19
19
|
*
|
|
20
20
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
21
21
|
*
|
|
@@ -24,8 +24,7 @@ interface InvalidateCacheSignature {
|
|
|
24
24
|
* >**Notes:**
|
|
25
25
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
26
26
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
27
|
-
*
|
|
28
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
27
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
29
28
|
* @param - An array of objects containing a `tag` field used to identify the cache to invalidate. All cached return values with any listed tags are invalidated. If no tags are specified, nothing is invalidated.
|
|
30
29
|
*/
|
|
31
30
|
(invalidationMethods: InvalidationMethods[]): Promise<void>;
|
|
@@ -23,7 +23,7 @@ export interface InvalidateCacheResponse {
|
|
|
23
23
|
*
|
|
24
24
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
25
25
|
*
|
|
26
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
26
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
27
27
|
*
|
|
28
28
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
29
29
|
*
|
|
@@ -32,8 +32,7 @@ export interface InvalidateCacheResponse {
|
|
|
32
32
|
* >**Notes:**
|
|
33
33
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
34
34
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
35
|
-
*
|
|
36
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
35
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
37
36
|
* @param invalidationMethods - An array of objects containing a `tag` field used to identify the cache to invalidate. All cached return values with any listed tags are invalidated. If no tags are specified, nothing is invalidated.
|
|
38
37
|
* @public
|
|
39
38
|
* @documentationMaturity preview
|
|
@@ -11,7 +11,7 @@ import * as ambassadorWixSsrV1InvalidateCacheRequest from './ssr-v1-invalidate-c
|
|
|
11
11
|
*
|
|
12
12
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
13
13
|
*
|
|
14
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
14
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
15
15
|
*
|
|
16
16
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
17
17
|
*
|
|
@@ -20,8 +20,7 @@ import * as ambassadorWixSsrV1InvalidateCacheRequest from './ssr-v1-invalidate-c
|
|
|
20
20
|
* >**Notes:**
|
|
21
21
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
22
22
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
23
|
-
*
|
|
24
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
23
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
25
24
|
* @param invalidationMethods - An array of objects containing a `tag` field used to identify the cache to invalidate. All cached return values with any listed tags are invalidated. If no tags are specified, nothing is invalidated.
|
|
26
25
|
* @public
|
|
27
26
|
* @documentationMaturity preview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.universal.js","sourceRoot":"","sources":["../../../src/ssr-v1-invalidate-cache-request-cache.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAEhG,OAAO,KAAK,wCAAwC,MAAM,iDAAiD,CAAC;AAqB5G
|
|
1
|
+
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.universal.js","sourceRoot":"","sources":["../../../src/ssr-v1-invalidate-cache-request-cache.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAEhG,OAAO,KAAK,wCAAwC,MAAM,iDAAiD,CAAC;AAqB5G;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,mBAA0C;IAE1C,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,mBAAmB,EAAE,mBAAmB;KACzC,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,wCAAwC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAEpE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE;YACzD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,qBAAqB,CAAC,CACxB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
|
9
9
|
*
|
|
10
10
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
11
11
|
*
|
|
12
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
12
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
13
13
|
*
|
|
14
14
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
15
15
|
*
|
|
@@ -18,7 +18,6 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
|
18
18
|
* >**Notes:**
|
|
19
19
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
20
20
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
21
|
-
*
|
|
22
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
21
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
23
22
|
*/
|
|
24
23
|
export declare function invalidateCache(payload: object): RequestOptionsFactory<any>;
|
|
@@ -24,7 +24,7 @@ const PACKAGE_NAME = '@wix/auto_sdk_cache_cache';
|
|
|
24
24
|
*
|
|
25
25
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
26
26
|
*
|
|
27
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
27
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
28
28
|
*
|
|
29
29
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
30
30
|
*
|
|
@@ -33,8 +33,7 @@ const PACKAGE_NAME = '@wix/auto_sdk_cache_cache';
|
|
|
33
33
|
* >**Notes:**
|
|
34
34
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
35
35
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
36
|
-
*
|
|
37
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
36
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
38
37
|
*/
|
|
39
38
|
function invalidateCache(payload) {
|
|
40
39
|
function __invalidateCache({ host }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.http.js","sourceRoot":"","sources":["../../../../src/ssr-v1-invalidate-cache-request-cache.http.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAI3D,SAAS,8DAA8D,CACrE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,2BAA2B,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.http.js","sourceRoot":"","sources":["../../../../src/ssr-v1-invalidate-cache-request-cache.http.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAI3D,SAAS,8DAA8D,CACrE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,2BAA2B,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,eAAe,CAAC,OAAe;IAC7C,SAAS,iBAAiB,CAAC,EAAE,IAAI,EAAO;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,qCAAqC;YACjD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,2EAA2E;YAC7E,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,8DAA8D,CAAC;gBAClE,SAAS,EAAE,sBAAsB;gBACjC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AApBD,0CAoBC"}
|
|
@@ -15,7 +15,7 @@ interface InvalidateCacheSignature {
|
|
|
15
15
|
*
|
|
16
16
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
17
17
|
*
|
|
18
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
18
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
19
19
|
*
|
|
20
20
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
21
21
|
*
|
|
@@ -24,8 +24,7 @@ interface InvalidateCacheSignature {
|
|
|
24
24
|
* >**Notes:**
|
|
25
25
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
26
26
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
27
|
-
*
|
|
28
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
27
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
29
28
|
* @param - An array of objects containing a `tag` field used to identify the cache to invalidate. All cached return values with any listed tags are invalidated. If no tags are specified, nothing is invalidated.
|
|
30
29
|
*/
|
|
31
30
|
(invalidationMethods: InvalidationMethods[]): Promise<void>;
|
|
@@ -23,7 +23,7 @@ export interface InvalidateCacheResponse {
|
|
|
23
23
|
*
|
|
24
24
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
25
25
|
*
|
|
26
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
26
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
27
27
|
*
|
|
28
28
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
29
29
|
*
|
|
@@ -32,8 +32,7 @@ export interface InvalidateCacheResponse {
|
|
|
32
32
|
* >**Notes:**
|
|
33
33
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
34
34
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
35
|
-
*
|
|
36
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
35
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
37
36
|
* @param invalidationMethods - An array of objects containing a `tag` field used to identify the cache to invalidate. All cached return values with any listed tags are invalidated. If no tags are specified, nothing is invalidated.
|
|
38
37
|
* @public
|
|
39
38
|
* @documentationMaturity preview
|
|
@@ -37,7 +37,7 @@ const ambassadorWixSsrV1InvalidateCacheRequest = __importStar(require("./ssr-v1-
|
|
|
37
37
|
*
|
|
38
38
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
39
39
|
*
|
|
40
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
40
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
41
41
|
*
|
|
42
42
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
43
43
|
*
|
|
@@ -46,8 +46,7 @@ const ambassadorWixSsrV1InvalidateCacheRequest = __importStar(require("./ssr-v1-
|
|
|
46
46
|
* >**Notes:**
|
|
47
47
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
48
48
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
49
|
-
*
|
|
50
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
49
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
51
50
|
* @param invalidationMethods - An array of objects containing a `tag` field used to identify the cache to invalidate. All cached return values with any listed tags are invalidated. If no tags are specified, nothing is invalidated.
|
|
52
51
|
* @public
|
|
53
52
|
* @documentationMaturity preview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.universal.js","sourceRoot":"","sources":["../../../../src/ssr-v1-invalidate-cache-request-cache.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAAgG;AAEhG,0HAA4G;AAqB5G
|
|
1
|
+
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.universal.js","sourceRoot":"","sources":["../../../../src/ssr-v1-invalidate-cache-request-cache.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAAgG;AAEhG,0HAA4G;AAqB5G;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACI,KAAK,UAAU,eAAe,CACnC,mBAA0C;IAE1C,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,mBAAmB,EAAE,mBAAmB;KACzC,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,wCAAwC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAEpE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE;YACzD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,qBAAqB,CAAC,CACxB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAlCD,0CAkCC"}
|
|
@@ -9,7 +9,7 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
|
9
9
|
*
|
|
10
10
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
11
11
|
*
|
|
12
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
12
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
13
13
|
*
|
|
14
14
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
15
15
|
*
|
|
@@ -18,7 +18,6 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
|
18
18
|
* >**Notes:**
|
|
19
19
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
20
20
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
21
|
-
*
|
|
22
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
21
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
23
22
|
*/
|
|
24
23
|
export declare function invalidateCache(payload: object): RequestOptionsFactory<any>;
|
|
@@ -21,7 +21,7 @@ const PACKAGE_NAME = '@wix/auto_sdk_cache_cache';
|
|
|
21
21
|
*
|
|
22
22
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
23
23
|
*
|
|
24
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
24
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
25
25
|
*
|
|
26
26
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
27
27
|
*
|
|
@@ -30,8 +30,7 @@ const PACKAGE_NAME = '@wix/auto_sdk_cache_cache';
|
|
|
30
30
|
* >**Notes:**
|
|
31
31
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
32
32
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
33
|
-
*
|
|
34
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
33
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
35
34
|
*/
|
|
36
35
|
export function invalidateCache(payload) {
|
|
37
36
|
function __invalidateCache({ host }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.http.js","sourceRoot":"","sources":["../../../../src/ssr-v1-invalidate-cache-request-cache.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,8DAA8D,CACrE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,2BAA2B,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.http.js","sourceRoot":"","sources":["../../../../src/ssr-v1-invalidate-cache-request-cache.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,8DAA8D,CACrE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,2BAA2B,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,SAAS,iBAAiB,CAAC,EAAE,IAAI,EAAO;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,qCAAqC;YACjD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,2EAA2E;YAC7E,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,8DAA8D,CAAC;gBAClE,SAAS,EAAE,sBAAsB;gBACjC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC"}
|
|
@@ -15,7 +15,7 @@ interface InvalidateCacheSignature {
|
|
|
15
15
|
*
|
|
16
16
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
17
17
|
*
|
|
18
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
18
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
19
19
|
*
|
|
20
20
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
21
21
|
*
|
|
@@ -24,8 +24,7 @@ interface InvalidateCacheSignature {
|
|
|
24
24
|
* >**Notes:**
|
|
25
25
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
26
26
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
27
|
-
*
|
|
28
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
27
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
29
28
|
* @param - An array of objects containing a `tag` field used to identify the cache to invalidate. All cached return values with any listed tags are invalidated. If no tags are specified, nothing is invalidated.
|
|
30
29
|
*/
|
|
31
30
|
(invalidationMethods: InvalidationMethods[]): Promise<void>;
|
|
@@ -23,7 +23,7 @@ export interface InvalidateCacheResponse {
|
|
|
23
23
|
*
|
|
24
24
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
25
25
|
*
|
|
26
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
26
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
27
27
|
*
|
|
28
28
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
29
29
|
*
|
|
@@ -32,8 +32,7 @@ export interface InvalidateCacheResponse {
|
|
|
32
32
|
* >**Notes:**
|
|
33
33
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
34
34
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
35
|
-
*
|
|
36
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
35
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
37
36
|
* @param invalidationMethods - An array of objects containing a `tag` field used to identify the cache to invalidate. All cached return values with any listed tags are invalidated. If no tags are specified, nothing is invalidated.
|
|
38
37
|
* @public
|
|
39
38
|
* @documentationMaturity preview
|
|
@@ -11,7 +11,7 @@ import * as ambassadorWixSsrV1InvalidateCacheRequest from './ssr-v1-invalidate-c
|
|
|
11
11
|
*
|
|
12
12
|
* Invalidates or clears previously cached return values based on specified tags.
|
|
13
13
|
*
|
|
14
|
-
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of web methods
|
|
14
|
+
* The `invalidationMethods` parameter accepts an array of objects, each containing a `tag` field. These tags are defined when caching return values of site [web methods](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction) and [routers](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/introduction#events-service-plugins_routers_service-plugins_wix-router_router-caching).
|
|
15
15
|
*
|
|
16
16
|
* For example, an array such as `[{ tag: "contacts" }, { tag: "labels" }]` will clear any cached return values tagged with "contacts" or "labels."
|
|
17
17
|
*
|
|
@@ -20,8 +20,7 @@ import * as ambassadorWixSsrV1InvalidateCacheRequest from './ssr-v1-invalidate-c
|
|
|
20
20
|
* >**Notes:**
|
|
21
21
|
* >- If you don't specify any tags in the `invalidationMethods` parameter, no caches are invalidated.
|
|
22
22
|
* >- If you don't call Invalidate Cache, caches are only invalidated when the Time to Live (TTL) expires or when the site is republished with a code change.
|
|
23
|
-
*
|
|
24
|
-
* >- (Velo only) Call Invalidate Cache to invalidate your web method and router caches. To invalidate Server Side Rendering (SSR) caches for your site, use the `invalidateCache()` function from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
23
|
+
* >- This method does not invalidate the Server Side Rendering (SSR) cache for your site. To invalidate that cache, use the Invalidate Cache method from the [`wix-site-backend`](https://dev.wix.com/docs/velo/api-reference/wix-site-backend/invalidate-cache) module.
|
|
25
24
|
* @param invalidationMethods - An array of objects containing a `tag` field used to identify the cache to invalidate. All cached return values with any listed tags are invalidated. If no tags are specified, nothing is invalidated.
|
|
26
25
|
* @public
|
|
27
26
|
* @documentationMaturity preview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.universal.js","sourceRoot":"","sources":["../../../../src/ssr-v1-invalidate-cache-request-cache.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAEhG,OAAO,KAAK,wCAAwC,MAAM,iDAAiD,CAAC;AAqB5G
|
|
1
|
+
{"version":3,"file":"ssr-v1-invalidate-cache-request-cache.universal.js","sourceRoot":"","sources":["../../../../src/ssr-v1-invalidate-cache-request-cache.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAEhG,OAAO,KAAK,wCAAwC,MAAM,iDAAiD,CAAC;AAqB5G;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,mBAA0C;IAE1C,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,mBAAmB,EAAE,mBAAmB;KACzC,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,wCAAwC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAEpE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE;YACzD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,qBAAqB,CAAC,CACxB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_cache_cache",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.ssr.v1.invalidate_cache_request"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "9b45c567d295a178856db8b50b6eb46eb992079dc588d7e82490a3ce"
|
|
52
52
|
}
|