Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Strange cache behaviour


mrp_123

Recommended Posts

Posted

I'm trying to build a heavily customised osCommerce system and have run into an odd problem.

 

I have altered boxes.php to remove the small images that form the top left corners of the boxes around each section in the side columns. This appears to have worked for all except the Categories box. The section of boxes.php that calls for the output of the corner_left.gif has been removed however...

 

If I empty my browser's cache and go to the index page, the corner graphic is not there, however as soon as I click on any of the categories, or refresh the page, the left corner graphic appears.

 

I can stop this happening by editting column_left.php to replace echo tep_cache_categories_box(); with include(DIR_WS_BOXES . 'categories.php');

 

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

//echo tep_cache_categories_box();

include(DIR_WS_BOXES . 'categories.php');

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

This does not strike me as being a satisfactory solution for a couple of reasons. The first is that I cannot figure out how calling echo tep_cache_categories_box(); results in the corner_left.gif being displayed and secondly without fully understanding what this function is doingand what the possible side effects of removing it are, I am reluctant to simply comment it out.

 

If anyone can shed any light on this for me I would be most grateful.

 

Cheers,

 

Andy

Posted

Are you using a contribution that also caches your store rather than just your browser? or have cache enabled in your admin?

This may be the problem you are seeing.

 

HTH

 

Julian

A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Archived

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

×
×
  • Create New...