Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Caching Features (column left)


nvbenterprises

Recommended Posts

I am on a shared server. For some reason, a few times a week the server will be "full". In other words, if I try to edit anything it will be "unable to save". For instance if I am editing my index page, the entire document will go to 0k. This is no big problem, I just learned to backup all my files. The problem seems to last for 4-6 hours at a time. I thought this was the only problem.

 

Now I see that when this is happening my boxes are turning off (disappearing) (categories and manufacturers). Is there a point in having the categories and manufacturers box in cache mode? Here is the code.

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

require(DIR_WS_BOXES . 'information.php');

 

I am thinking of changing to this:

 

require(DIR_WS_BOXES . 'categories.php');

require(DIR_WS_BOXES . 'manufacturers.php');

require(DIR_WS_BOXES . 'information.php');

 

I am just wondering if this poses problems with page size, and exactly what it may change from the customer/spider standpoint?

Link to comment
Share on other sites

Thanks. The site is http://www.aaastateofplay.com. The problem is occurring off and on today. It seems after the first page load all is good, then the boxes go.

 

I can't add or modify files until the server comes back.

 

I have changed the column_left page as stated above once before, but changed it back as I did not know any potential consequences if any.

 

I don't believe adding a cache contribution is going to help, especially since caching seems to be the only problem resulting from the server problems.

 

I just wanted to make sure editing column_left in this manner doesn't pose problems for loading time. If it doesn't then why even bother caching the boxes?

Link to comment
Share on other sites

I don't believe adding a cache contribution is going to help, especially since caching seems to be the only problem resulting from the server problems.

 

there isn't one type or level of cache, stock osc uses it's own. And cacheing helps in many different ways to increase the potential of your store. But you need first to configure it properly as I mentioned. It's the reason of your problems.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...