osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

But cache is turned off in admin

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: ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 04-14-2008, 07:37 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 444
Thanks: 3
Thanked 75 Times in 70 Posts
Rep Power: 6
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default But cache is turned off in admin

cache is turned off in the admin, but the site went down today with the following error.

Quote:
PHP Fatal error: Allowed memory size of 23068672 bytes exhausted (tried to allocate 14942208 bytes) in /rootpath/thedomain.com/httpdocs/includes/classes/cache.class.php(313) : eval()'d code on line 21846
Now, since cache is OFF, why the hell am I getting an error message related to something I'm not running?

[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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 04-14-2008, 08:27 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 444
Thanks: 3
Thanked 75 Times in 70 Posts
Rep Power: 6
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: But cache is turned off in admin

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 every index.php and product_info.php get's cached... IF cache is on... That would explain why memory would be an issue with a store with 1200 categories and 30,000 products. BUT, if cache is set to false, then again, this shouldn't be a problem... both standard cache and chemo cache are "off" per the admin interface.
__________________
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 01:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax