Trying to clean up things so they load faster.

This commit is contained in:
Scott Idem
2024-09-16 15:41:06 -04:00
parent c7b48ca97a
commit d122d1fb93
2 changed files with 41 additions and 31 deletions

View File

@@ -57,17 +57,17 @@ async function check_hosted_file_obj_w_hash(
// Updated 2024-03-29
async function handle_load_ae_obj_id__site_domain(
{
api_cfg,
fqdn,
try_cache=false,
timeout=7000,
log_lvl=0
api_cfg,
fqdn,
try_cache = false,
timeout = 7000,
log_lvl = 0
}: {
api_cfg: any,
fqdn: string,
try_cache: boolean,
timeout: number,
log_lvl: number
api_cfg: any,
fqdn: string,
try_cache?: boolean,
timeout?: number,
log_lvl?: number
}
) {
console.log(`*** handle_load_ae_obj_id__site_domain() *** fqdn=${fqdn}`);
@@ -118,25 +118,25 @@ async function handle_load_ae_obj_id__site_domain(
// Updated 2024-03-29
async function handle_load_ae_obj_code__data_store(
{
api_cfg,
code,
data_type='text',
for_type=null,
for_id=null,
try_cache=true,
save_idb=false,
timeout=9000,
log_lvl=0
api_cfg,
code,
data_type = 'text',
for_type = null,
for_id = null,
try_cache = true,
save_idb = false,
timeout = 9000,
log_lvl = 0
}: {
api_cfg: any,
code: string,
data_type: string,
for_type: string|null,
for_id: string|null,
try_cache: boolean,
save_idb: boolean,
timeout: number,
log_lvl: number
api_cfg: any,
code: string,
data_type?: string,
for_type?: string|null,
for_id?: string|null,
try_cache?: boolean,
save_idb?: boolean,
timeout?: number,
log_lvl?: number
}
) {
if (log_lvl) {