graeme john Posted June 30, 2010 Posted June 30, 2010 I'm looking for some help to disable the categories_box cache only for SSL. I have had to disable the categories_box cache to get rid of the IE secure/insecure requester. The images used in my Categories Box are causing the problem. I have commented out the original because I have no idea how to add a call to not use the cache if SSL pages are called. //if ((USE_CACHE == 'true') && empty($SID)) { // **** Disabled - cat images SSL **** // echo tep_cache_categories_box(); //} else { // include(DIR_WS_BOXES . 'categories.php'); // } require(DIR_WS_BOXES . 'categories.php'); any help appreciated. graeme
germ Posted June 30, 2010 Posted June 30, 2010 And why can't the image links be fixed? :unsure: Unless the images are not stored in the confines of the store there is no reason they should have "unsecure" links. Seems like you should be curing the disease instead of treating the symptom... :blink: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
graeme john Posted June 30, 2010 Author Posted June 30, 2010 feel like a complete goose, noticed if ( ($banner = tep_banner_exists('dynamic', '190x190') and $HTTPS !='on') ) { require(DIR_WS_BOXES . 'column_left_banner.php'); } so I tried adding the and $HTTPS !='on' if ((USE_CACHE == 'true') && empty($SID) and $HTTPS !='on') { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } seems to work like a charm graeme
graeme john Posted June 30, 2010 Author Posted June 30, 2010 And why can't the image links be fixed? :unsure: Unless the images are not stored in the confines of the store there is no reason they should have "unsecure" links. Seems like you should be curing the disease instead of treating the symptom... :blink: I have a heavily modified shop, all image urls are full instead of relative which is where the problem originally sprung from.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.