= LIQUID_CACHE_MAX_AGE) {
console.debug(`STOQ - Liquid cache is fresh (${Math.round(liquidCacheAge / 60)} minutes old)`);
window._RestockRocketConfig.isLiquidCacheFresh = true;
} else {
console.debug(`STOQ - Liquid cache is stale (${Math.round(liquidCacheAge / 60)} minutes old, max ${Math.round(LIQUID_CACHE_MAX_AGE / 60)} minutes)`);
window._RestockRocketConfig.isLiquidCacheFresh = false;
}
}
function checkSettingsExpiry(settings) {
try {
if (!settings || !settings.updated_at) {
console.debug('STOQ - Invalid settings data structure');
return null;
}
if (!settings.cache) {
console.debug('STOQ - settings caching disabled');
return null;
}
// Check if translations are enabled but missing from cache
// This handles the backfill period where DB has translations but metafield doesn't
if (settings.multi_language_enabled) {
if (!settings.translations) {
// Translations enabled but no
Shop All New Bikes
// Create "window.Shoppad.apps.infiniteoptions" object if it doesn't already exist
'Shoppad.apps.infiniteoptions'.split('.').reduce(function (o, x) {
if (!o[x]) {
o[x] = {};
}
return o[x];
}, window);
// Note we are using the theme app extension
window.Shoppad.apps.infiniteoptions.themeAppExtensionActive = true;
at_price":45000,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":63810021753215,"position":2,"preview_image":{"aspect_ratio":1.5,"height":800,"width":1200,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH47_media-GRN-0_483f7720-0d6f-4df1-8f00-88ef18379902.jpg?v=1736262975"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44049903812834,"title":"Electric Blue","option1":"Electric Blue","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":{"id":72808884928895,"product_id":8082512019682,"position":5,"created_at":"2025-01-07T15:16:15+00:00","updated_at":"2025-01-07T15:16:15+00:00","alt":null,"width":1200,"height":800,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH47_media-ELECTRICBLUE-0_60d89242-0819-493e-afec-ebfb96fd7b62.jpg?v=1736262975","variant_ids":[44049903812834]},"available":false,"name":"Frog 47 - Electric Blue","public_title":"Electric Blue","options":["Electric Blue"],"price":40500,"weight":0,"compare
nt":"shopify","barcode":"","featured_media":{"alt":null,"id":63810021884287,"position":6,"preview_image":{"aspect_ratio":1.5,"height":800,"width":1200,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH47_media-SPOTTY-0_19d44467-d15e-4836-b3e5-97f324047d67.jpg?v=1736262975"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44049916428514,"title":"Red","option1":"Red","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":{"id":72808884863359,"product_id":8082512019682,"position":3,"created_at":"2025-01-07T15:16:15+00:00","updated_at":"2025-01-07T15:16:15+00:00","alt":null,"width":1200,"height":800,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH47_media-RED-0.default_60df76ab-6589-450a-b00b-1bc493fb9219.jpg?v=1736262975","variant_ids":[44049916428514]},"available":false,"name":"Frog 47 - Red","public_title":"Red","options":["Red"],"price":40500,"weight":0,"compare_at_price":45000,"inventory_management":"shopify","barcode":"","featured_media":{"aContact UsTrack Your Service