This is a discussion on But cache is turned off in admin within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; cache is turned off in the admin, but the site went down today with the following error. PHP Fatal error: ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| cache is turned off in the admin, but the site went down today with the following error. Quote:
[the temporary solution, just to get the site up, was to add ini_set("memory_limit","256M"); to the top of includes/configure.php - and really, that is NOT a solution. It is a hell of a KLUGE]
__________________ so endith the lesson<think>sometimes I just sit's and thinks</think> "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB |
|
#2
| |||
| |||
| Debugging continues... From application_top Code: // BOF: MOD - Page cache contribution - by Chemo
// Define the pages to be cached in the $cache_pages array
$cache_pages = array('index.php', 'product_info.php');
if (!tep_session_is_registered('customer_id') && ENABLE_PAGE_CACHE == 'true') {
// Start the output buffer for the shopping cart
ob_start();
require(DIR_WS_BOXES . 'shopping_cart.php');
$cart_cache = ob_get_clean();
// End the output buffer for cart and save as $cart_cache string
// Loop through the $cache_pages array and start caching if found
foreach ($cache_pages as $index => $page){
if ( strpos($_SERVER['PHP_SELF'], $page) ){
include_once(DIR_WS_CLASSES . 'page_cache.php');
$page_cache = new page_cache($cart_cache);
// The cache timelife is set globally
// in the admin control panel settings
// Example below overrides the setting to 60 minutes
// Leave blank to use default setting
// $page_cache->cache_this_page(60);
$page_cache->cache_this_page();
}
}
}
__________________ so endith the lesson<think>sometimes I just sit's and thinks</think> "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cache HTML | michael_s | New osCommerce Contributions | 0 | 05-11-2007 10:24 AM |
| Cache HTML | michael_s | New osCommerce Contributions | 0 | 03-30-2007 05:53 PM |
| Page Cache v1.0 - MS2 | michael_s | New osCommerce Contributions | 0 | 02-25-2007 01:02 PM |
| search engine URLS turned off, but they are showing anyway | JonCloud420 | osCMax v2 Customization/Mods | 7 | 10-14-2006 02:52 PM |