$cache_time = 7200; // Time in seconds to keep a page cached
$cache_folder = '/var/www/vhosts/xchoppers.com/httpdocs/cache/custom/categories/'; // Folder to store cached files (no trailing slash)
$cache_filename = $cache_folder.md5($cPath); // $_SERVER['REQUEST_URI']); // Location to lookup or store cached file
//Check to see if this file has already been cached
// If it has get and store the file creation time
$cache_created = (file_exists($cache_filename)) ? filemtime($cache_filename) : 0;
//$cache_created = 0;
if ($cache_created != 0 && (time() - $cache_created) < $cache_time) {
readfile($cache_filename); // The cached copy is still valid, read it into the output buffer
ob_flush();
// flush();
} else {
if(!tep_session_is_registered('customer_id')) {
ob_start(); // Turns on output buffering
}
?>
Cookies must be enabled to purchase online on this store to embrace privacy and security related issues regarding your visit to this site.
By enabling cookie support on your browser, the communication between you and this site is strengthened to be certain it is you who are making transactions on your own behalf, and to prevent leakage of your privacy information.
We have detected that your browser does not support cookies, or has set cookies to be disabled.
To continue shopping online, we encourage you to enable cookies on your browser.
For Internet Explorer browsers, please follow these instructions:
Click on the Tools menubar, and select Internet Options
Select the Security tab, and reset the security level to Medium
We have taken this measurement of security for your benefit, and apologize upfront if any inconveniences are caused.
Please contact the store owner if you have any questions relating to this requirement, or to continue purchasing products offline.