require('cache_helper.php'); // Ensure this file is included
$cacheFile = 'cache/storage_data_' . md5($_GET['facility_id']) . '.cache';
$facilityData = getCache($cacheFile);
if (!$facilityData) {
// No valid cache found, so make the SOAP API call
$facility = SFfacility::i()->facility_details($_GET['facility_id'])->q->facility;
$facilityData = json_encode($facility); // Convert to JSON for caching
setCache($cacheFile, $facilityData);
} else {
// Use cached data
$facility = json_decode($facilityData);
}
Fatal error: Call to undefined function getCache() in /home2/moversco/public_html/storage_facility.php on line 9