hostinger-api-sdk 2.4.2 → 2.4.3
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/README.md +2 -2
- package/api.ts +107 -9
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +65 -9
- package/dist/api.js +84 -9
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +65 -9
- package/dist/esm/api.js +84 -9
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingCacheApi.md +59 -2
- package/docs/HostingV1CacheCacheStatusResource.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.4.
|
|
7
|
+
* API Version: 2.4.3
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.4.
|
|
4
|
+
* API Version: 2.4.3
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.4.
|
|
7
|
+
* API Version: 2.4.3
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.4.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.4.3" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.4.
|
|
4
|
+
* API Version: 2.4.3
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -7050,6 +7050,25 @@ export interface HostingListWebsitesV1200Response {
|
|
|
7050
7050
|
*/
|
|
7051
7051
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
7052
7052
|
}
|
|
7053
|
+
/**
|
|
7054
|
+
*
|
|
7055
|
+
* @export
|
|
7056
|
+
* @interface HostingV1CacheCacheStatusResource
|
|
7057
|
+
*/
|
|
7058
|
+
export interface HostingV1CacheCacheStatusResource {
|
|
7059
|
+
/**
|
|
7060
|
+
* Whether server-side caching is enabled for the website
|
|
7061
|
+
* @type {boolean}
|
|
7062
|
+
* @memberof HostingV1CacheCacheStatusResource
|
|
7063
|
+
*/
|
|
7064
|
+
'is_enabled': boolean;
|
|
7065
|
+
/**
|
|
7066
|
+
* Whether development (cacheless) mode is on. While it is on, caching is bypassed even when `is_enabled` is true. Can take a few minutes to follow a cacheless mode toggle.
|
|
7067
|
+
* @type {boolean}
|
|
7068
|
+
* @memberof HostingV1CacheCacheStatusResource
|
|
7069
|
+
*/
|
|
7070
|
+
'is_cacheless_mode_enabled': boolean;
|
|
7071
|
+
}
|
|
7053
7072
|
/**
|
|
7054
7073
|
*
|
|
7055
7074
|
* @export
|
|
@@ -24771,7 +24790,16 @@ export declare const HostingCacheApiAxiosParamCreator: (configuration?: Configur
|
|
|
24771
24790
|
*/
|
|
24772
24791
|
clearWebsiteCacheV1: (username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24773
24792
|
/**
|
|
24774
|
-
*
|
|
24793
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
24794
|
+
* @summary Get cache status
|
|
24795
|
+
* @param {string} username
|
|
24796
|
+
* @param {string} domain Domain name
|
|
24797
|
+
* @param {*} [options] Override http request option.
|
|
24798
|
+
* @throws {RequiredError}
|
|
24799
|
+
*/
|
|
24800
|
+
getCacheStatusV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24801
|
+
/**
|
|
24802
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
24775
24803
|
* @summary Toggle cacheless mode
|
|
24776
24804
|
* @param {string} username
|
|
24777
24805
|
* @param {string} domain Domain name
|
|
@@ -24781,7 +24809,7 @@ export declare const HostingCacheApiAxiosParamCreator: (configuration?: Configur
|
|
|
24781
24809
|
*/
|
|
24782
24810
|
toggleCachelessModeV1: (username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24783
24811
|
/**
|
|
24784
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
24812
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
24785
24813
|
* @summary Toggle website cache
|
|
24786
24814
|
* @param {string} username
|
|
24787
24815
|
* @param {string} domain Domain name
|
|
@@ -24807,7 +24835,16 @@ export declare const HostingCacheApiFp: (configuration?: Configuration) => {
|
|
|
24807
24835
|
*/
|
|
24808
24836
|
clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
24809
24837
|
/**
|
|
24810
|
-
*
|
|
24838
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
24839
|
+
* @summary Get cache status
|
|
24840
|
+
* @param {string} username
|
|
24841
|
+
* @param {string} domain Domain name
|
|
24842
|
+
* @param {*} [options] Override http request option.
|
|
24843
|
+
* @throws {RequiredError}
|
|
24844
|
+
*/
|
|
24845
|
+
getCacheStatusV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CacheCacheStatusResource>>;
|
|
24846
|
+
/**
|
|
24847
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
24811
24848
|
* @summary Toggle cacheless mode
|
|
24812
24849
|
* @param {string} username
|
|
24813
24850
|
* @param {string} domain Domain name
|
|
@@ -24817,7 +24854,7 @@ export declare const HostingCacheApiFp: (configuration?: Configuration) => {
|
|
|
24817
24854
|
*/
|
|
24818
24855
|
toggleCachelessModeV1(username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
24819
24856
|
/**
|
|
24820
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
24857
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
24821
24858
|
* @summary Toggle website cache
|
|
24822
24859
|
* @param {string} username
|
|
24823
24860
|
* @param {string} domain Domain name
|
|
@@ -24843,7 +24880,16 @@ export declare const HostingCacheApiFactory: (configuration?: Configuration, bas
|
|
|
24843
24880
|
*/
|
|
24844
24881
|
clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
24845
24882
|
/**
|
|
24846
|
-
*
|
|
24883
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
24884
|
+
* @summary Get cache status
|
|
24885
|
+
* @param {string} username
|
|
24886
|
+
* @param {string} domain Domain name
|
|
24887
|
+
* @param {*} [options] Override http request option.
|
|
24888
|
+
* @throws {RequiredError}
|
|
24889
|
+
*/
|
|
24890
|
+
getCacheStatusV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CacheCacheStatusResource>;
|
|
24891
|
+
/**
|
|
24892
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
24847
24893
|
* @summary Toggle cacheless mode
|
|
24848
24894
|
* @param {string} username
|
|
24849
24895
|
* @param {string} domain Domain name
|
|
@@ -24853,7 +24899,7 @@ export declare const HostingCacheApiFactory: (configuration?: Configuration, bas
|
|
|
24853
24899
|
*/
|
|
24854
24900
|
toggleCachelessModeV1(username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
24855
24901
|
/**
|
|
24856
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
24902
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
24857
24903
|
* @summary Toggle website cache
|
|
24858
24904
|
* @param {string} username
|
|
24859
24905
|
* @param {string} domain Domain name
|
|
@@ -24882,7 +24928,17 @@ export declare class HostingCacheApi extends BaseAPI {
|
|
|
24882
24928
|
*/
|
|
24883
24929
|
clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
24884
24930
|
/**
|
|
24885
|
-
*
|
|
24931
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
24932
|
+
* @summary Get cache status
|
|
24933
|
+
* @param {string} username
|
|
24934
|
+
* @param {string} domain Domain name
|
|
24935
|
+
* @param {*} [options] Override http request option.
|
|
24936
|
+
* @throws {RequiredError}
|
|
24937
|
+
* @memberof HostingCacheApi
|
|
24938
|
+
*/
|
|
24939
|
+
getCacheStatusV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1CacheCacheStatusResource, any, {}, any>>;
|
|
24940
|
+
/**
|
|
24941
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
24886
24942
|
* @summary Toggle cacheless mode
|
|
24887
24943
|
* @param {string} username
|
|
24888
24944
|
* @param {string} domain Domain name
|
|
@@ -24893,7 +24949,7 @@ export declare class HostingCacheApi extends BaseAPI {
|
|
|
24893
24949
|
*/
|
|
24894
24950
|
toggleCachelessModeV1(username: string, domain: string, hostingV1CacheToggleCachelessModeRequest: HostingV1CacheToggleCachelessModeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
24895
24951
|
/**
|
|
24896
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
24952
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
24897
24953
|
* @summary Toggle website cache
|
|
24898
24954
|
* @param {string} username
|
|
24899
24955
|
* @param {string} domain Domain name
|
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.4.
|
|
6
|
+
* API Version: 2.4.3
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13029,7 +13029,43 @@ export const HostingCacheApiAxiosParamCreator = function (configuration) {
|
|
|
13029
13029
|
};
|
|
13030
13030
|
}),
|
|
13031
13031
|
/**
|
|
13032
|
-
*
|
|
13032
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
13033
|
+
* @summary Get cache status
|
|
13034
|
+
* @param {string} username
|
|
13035
|
+
* @param {string} domain Domain name
|
|
13036
|
+
* @param {*} [options] Override http request option.
|
|
13037
|
+
* @throws {RequiredError}
|
|
13038
|
+
*/
|
|
13039
|
+
getCacheStatusV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
13040
|
+
// verify required parameter 'username' is not null or undefined
|
|
13041
|
+
assertParamExists('getCacheStatusV1', 'username', username);
|
|
13042
|
+
// verify required parameter 'domain' is not null or undefined
|
|
13043
|
+
assertParamExists('getCacheStatusV1', 'domain', domain);
|
|
13044
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/status`
|
|
13045
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13046
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
13047
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13048
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13049
|
+
let baseOptions;
|
|
13050
|
+
if (configuration) {
|
|
13051
|
+
baseOptions = configuration.baseOptions;
|
|
13052
|
+
}
|
|
13053
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13054
|
+
const localVarHeaderParameter = {};
|
|
13055
|
+
const localVarQueryParameter = {};
|
|
13056
|
+
// authentication apiToken required
|
|
13057
|
+
// http bearer authentication required
|
|
13058
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13059
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13060
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13061
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13062
|
+
return {
|
|
13063
|
+
url: toPathString(localVarUrlObj),
|
|
13064
|
+
options: localVarRequestOptions,
|
|
13065
|
+
};
|
|
13066
|
+
}),
|
|
13067
|
+
/**
|
|
13068
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
13033
13069
|
* @summary Toggle cacheless mode
|
|
13034
13070
|
* @param {string} username
|
|
13035
13071
|
* @param {string} domain Domain name
|
|
@@ -13070,7 +13106,7 @@ export const HostingCacheApiAxiosParamCreator = function (configuration) {
|
|
|
13070
13106
|
};
|
|
13071
13107
|
}),
|
|
13072
13108
|
/**
|
|
13073
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
13109
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
13074
13110
|
* @summary Toggle website cache
|
|
13075
13111
|
* @param {string} username
|
|
13076
13112
|
* @param {string} domain Domain name
|
|
@@ -13137,7 +13173,23 @@ export const HostingCacheApiFp = function (configuration) {
|
|
|
13137
13173
|
});
|
|
13138
13174
|
},
|
|
13139
13175
|
/**
|
|
13140
|
-
*
|
|
13176
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
13177
|
+
* @summary Get cache status
|
|
13178
|
+
* @param {string} username
|
|
13179
|
+
* @param {string} domain Domain name
|
|
13180
|
+
* @param {*} [options] Override http request option.
|
|
13181
|
+
* @throws {RequiredError}
|
|
13182
|
+
*/
|
|
13183
|
+
getCacheStatusV1(username, domain, options) {
|
|
13184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13185
|
+
var _a, _b;
|
|
13186
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCacheStatusV1(username, domain, options);
|
|
13187
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingCacheApi.getCacheStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13188
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13189
|
+
});
|
|
13190
|
+
},
|
|
13191
|
+
/**
|
|
13192
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
13141
13193
|
* @summary Toggle cacheless mode
|
|
13142
13194
|
* @param {string} username
|
|
13143
13195
|
* @param {string} domain Domain name
|
|
@@ -13154,7 +13206,7 @@ export const HostingCacheApiFp = function (configuration) {
|
|
|
13154
13206
|
});
|
|
13155
13207
|
},
|
|
13156
13208
|
/**
|
|
13157
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
13209
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
13158
13210
|
* @summary Toggle website cache
|
|
13159
13211
|
* @param {string} username
|
|
13160
13212
|
* @param {string} domain Domain name
|
|
@@ -13192,7 +13244,18 @@ export const HostingCacheApiFactory = function (configuration, basePath, axios)
|
|
|
13192
13244
|
return localVarFp.clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(axios, basePath));
|
|
13193
13245
|
},
|
|
13194
13246
|
/**
|
|
13195
|
-
*
|
|
13247
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
13248
|
+
* @summary Get cache status
|
|
13249
|
+
* @param {string} username
|
|
13250
|
+
* @param {string} domain Domain name
|
|
13251
|
+
* @param {*} [options] Override http request option.
|
|
13252
|
+
* @throws {RequiredError}
|
|
13253
|
+
*/
|
|
13254
|
+
getCacheStatusV1(username, domain, options) {
|
|
13255
|
+
return localVarFp.getCacheStatusV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13256
|
+
},
|
|
13257
|
+
/**
|
|
13258
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
13196
13259
|
* @summary Toggle cacheless mode
|
|
13197
13260
|
* @param {string} username
|
|
13198
13261
|
* @param {string} domain Domain name
|
|
@@ -13204,7 +13267,7 @@ export const HostingCacheApiFactory = function (configuration, basePath, axios)
|
|
|
13204
13267
|
return localVarFp.toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options).then((request) => request(axios, basePath));
|
|
13205
13268
|
},
|
|
13206
13269
|
/**
|
|
13207
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
13270
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
13208
13271
|
* @summary Toggle website cache
|
|
13209
13272
|
* @param {string} username
|
|
13210
13273
|
* @param {string} domain Domain name
|
|
@@ -13238,7 +13301,19 @@ export class HostingCacheApi extends BaseAPI {
|
|
|
13238
13301
|
return HostingCacheApiFp(this.configuration).clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(this.axios, this.basePath));
|
|
13239
13302
|
}
|
|
13240
13303
|
/**
|
|
13241
|
-
*
|
|
13304
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
13305
|
+
* @summary Get cache status
|
|
13306
|
+
* @param {string} username
|
|
13307
|
+
* @param {string} domain Domain name
|
|
13308
|
+
* @param {*} [options] Override http request option.
|
|
13309
|
+
* @throws {RequiredError}
|
|
13310
|
+
* @memberof HostingCacheApi
|
|
13311
|
+
*/
|
|
13312
|
+
getCacheStatusV1(username, domain, options) {
|
|
13313
|
+
return HostingCacheApiFp(this.configuration).getCacheStatusV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13314
|
+
}
|
|
13315
|
+
/**
|
|
13316
|
+
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
13242
13317
|
* @summary Toggle cacheless mode
|
|
13243
13318
|
* @param {string} username
|
|
13244
13319
|
* @param {string} domain Domain name
|
|
@@ -13251,7 +13326,7 @@ export class HostingCacheApi extends BaseAPI {
|
|
|
13251
13326
|
return HostingCacheApiFp(this.configuration).toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13252
13327
|
}
|
|
13253
13328
|
/**
|
|
13254
|
-
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
13329
|
+
* Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
13255
13330
|
* @summary Toggle website cache
|
|
13256
13331
|
* @param {string} username
|
|
13257
13332
|
* @param {string} domain Domain name
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.4.
|
|
4
|
+
* API Version: 2.4.3
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.4.
|
|
6
|
+
* API Version: 2.4.3
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.4.
|
|
4
|
+
* API Version: 2.4.3
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.4.
|
|
6
|
+
* API Version: 2.4.3
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.4.
|
|
4
|
+
* API Version: 2.4.3
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.4.
|
|
6
|
+
* API Version: 2.4.3
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.4.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.4.3" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.4.
|
|
4
|
+
* API Version: 2.4.3
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.4.
|
|
6
|
+
* API Version: 2.4.3
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.4.
|
|
4
|
+
* API Version: 2.4.3
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.4.
|
|
7
|
+
* API Version: 2.4.3
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/docs/HostingCacheApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**clearWebsiteCacheV1**](#clearwebsitecachev1) | **DELETE** /api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear | Clear website cache|
|
|
8
|
+
|[**getCacheStatusV1**](#getcachestatusv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/cache/status | Get cache status|
|
|
8
9
|
|[**toggleCachelessModeV1**](#togglecachelessmodev1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/toggle | Toggle cacheless mode|
|
|
9
10
|
|[**toggleWebsiteCacheV1**](#togglewebsitecachev1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/cache/toggle | Toggle website cache|
|
|
10
11
|
|
|
@@ -67,10 +68,66 @@ const { status, data } = await apiInstance.clearWebsiteCacheV1(
|
|
|
67
68
|
|
|
68
69
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
69
70
|
|
|
71
|
+
# **getCacheStatusV1**
|
|
72
|
+
> HostingV1CacheCacheStatusResource getCacheStatusV1()
|
|
73
|
+
|
|
74
|
+
Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
75
|
+
|
|
76
|
+
### Example
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import {
|
|
80
|
+
HostingCacheApi,
|
|
81
|
+
Configuration
|
|
82
|
+
} from '@hostinger/sdk';
|
|
83
|
+
|
|
84
|
+
const configuration = new Configuration();
|
|
85
|
+
const apiInstance = new HostingCacheApi(configuration);
|
|
86
|
+
|
|
87
|
+
let username: string; // (default to undefined)
|
|
88
|
+
let domain: string; //Domain name (default to undefined)
|
|
89
|
+
|
|
90
|
+
const { status, data } = await apiInstance.getCacheStatusV1(
|
|
91
|
+
username,
|
|
92
|
+
domain
|
|
93
|
+
);
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
|Name | Type | Description | Notes|
|
|
99
|
+
|------------- | ------------- | ------------- | -------------|
|
|
100
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
101
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Return type
|
|
105
|
+
|
|
106
|
+
**HostingV1CacheCacheStatusResource**
|
|
107
|
+
|
|
108
|
+
### Authorization
|
|
109
|
+
|
|
110
|
+
[apiToken](../README.md#apiToken)
|
|
111
|
+
|
|
112
|
+
### HTTP request headers
|
|
113
|
+
|
|
114
|
+
- **Content-Type**: Not defined
|
|
115
|
+
- **Accept**: application/json
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### HTTP response details
|
|
119
|
+
| Status code | Description | Response headers |
|
|
120
|
+
|-------------|-------------|------------------|
|
|
121
|
+
|**200** | Success response | - |
|
|
122
|
+
|**401** | Unauthenticated response | - |
|
|
123
|
+
|**500** | Error response | - |
|
|
124
|
+
|
|
125
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
126
|
+
|
|
70
127
|
# **toggleCachelessModeV1**
|
|
71
128
|
> CommonSuccessEmptyResource toggleCachelessModeV1(hostingV1CacheToggleCachelessModeRequest)
|
|
72
129
|
|
|
73
|
-
Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching.
|
|
130
|
+
Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
|
|
74
131
|
|
|
75
132
|
### Example
|
|
76
133
|
|
|
@@ -131,7 +188,7 @@ const { status, data } = await apiInstance.toggleCachelessModeV1(
|
|
|
131
188
|
# **toggleWebsiteCacheV1**
|
|
132
189
|
> CommonSuccessEmptyResource toggleWebsiteCacheV1(hostingV1CacheToggleCacheRequest)
|
|
133
190
|
|
|
134
|
-
Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
|
|
191
|
+
Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
|
|
135
192
|
|
|
136
193
|
### Example
|
|
137
194
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# HostingV1CacheCacheStatusResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**is_enabled** | **boolean** | Whether server-side caching is enabled for the website | [default to undefined]
|
|
9
|
+
**is_cacheless_mode_enabled** | **boolean** | Whether development (cacheless) mode is on. While it is on, caching is bypassed even when `is_enabled` is true. Can take a few minutes to follow a cacheless mode toggle. | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { HostingV1CacheCacheStatusResource } from '@hostinger/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: HostingV1CacheCacheStatusResource = {
|
|
17
|
+
is_enabled,
|
|
18
|
+
is_cacheless_mode_enabled,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.4.
|
|
6
|
+
* API Version: 2.4.3
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|