php
// Important: this must come first!
header("Cache-Control: no-cache, must-revalidate, max-age=0");
// Optional: also prevent caching by proxies
header("Expires: Sat, 1 Jan 2000 00:00:00 GMT");
header("Pragma: no-cache");
// Now continue with your logic
$posts_json = file_get_contents('https://wam.ayemall.com/wp-json/wp/v2/posts?_cache_bust=' . time());
$posts = json_decode($posts_json, true);
?>