$rf = wp_cache_get('key', 'test-group', true); echo "wp_cache_add > wp_cache_get force: " . bool_to_str($r == $rf); echo "wp_cache_add > wp_cache_get: " . bool_to_str($r == 'value'); $r = wp_cache_get('integer', 'test-group'); $rf = wp_cache_get('integer', 'test-group', true); echo "wp_cache_add exist > wp_cache_get force: " . bool_to_str($r == $rf); echo "wp_cache_add exist > wp_cache_get: " . bool_to_str($r == -1); // test wp_cache_delete wp_cache_delete('key', 'test-group'); wp_cache_delete('integer', 'test-group'); $false = wp_cache_get('key', 'test-group'); $falsef = wp_cache_get('integer', 'test-group', true); echo "wp_cache_delete > wp_cache_get force:" . bool_to_str($falsef === $false); echo "wp_cache_delete > wp_cache_get: " . bool_to_str($false === false); // test wp_cache_replace $false = wp_cache_replace('key', 'value', 'test-group'); wp_cache_set('key', 'value', 'test-group'); $true = wp_cache_replace('key', 'value', 'test-group'); echo "wp_cache_replace: " . bool_to_str($true === true); echo "wp_cache_replace no exist: " . bool_to_str($false == false); $r = wp_cache_get('key', 'test-group'); $rf = wp_cache_get('key', 'test-group', true); echo "wp_cache_replace > wp_cache_get force: " . bool_to_str($r == $rf); echo "wp_cache_replace > wp_cache_get: " . bool_to_str($r == 'value'); // test wp_cache_set wp_cache_set('a', 'b', 'test-group'); $r = wp_cache_get('a', 'test-group'); $rf = wp_cache_get('a', 'test-group', true); echo "wp_cache_set > wp_cache_get force: " . bool_to_str($r == $rf); echo "wp_cache_set > wp_cache_get: " . bool_to_str($r == 'b');
?> ; var UPPSITE_IS_TABBAR = <?php echo bool_to_str($has_tabbar); ?> ; var UPPSITE_COLOURS = <?php echo json_encode(uppsite_get_colours()); ?> ; var UPPSITE_HOMEPAGE_CAROUSEL_TIMER = <?php echo mysiteapp_homepage_carousel_rotate_interval(); ?> ; var UPPSITE_IS_BUSINESS = <?php echo bool_to_str($isBusiness); ?> ; var UPPSITE_HIDE_MENUS = <?php echo $hideMenus; ?> ; var UPPSITE_CUR_URL = "<?php echo esc_js(home_url('/')); ?> "; var UPPSITE_ADD_TO_CONTACTS = <?php echo $add_to_contacts; ?> ; </script>