auzStar Posted December 19, 2014 Share Posted December 19, 2014 (edited) Support Thread for Advanced Cache Control Tool for osCommerce version 2.3.x Report problems here. I will monitor this thread and try to answer as many questions as I can. Feedback and comments appreciated. Download link: http://addons.oscommerce.com/info/9189 Dom Edited December 19, 2014 by auzStar Quote My Add-onsAdvanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download SupportAjax Product Listing for osC 2.3.4 (bootstrap) Download SupportCategory New Products Carousel for osC 2.3.4 (bootstrap) Download SupportCategory Popular Products Carousel for osC 2.3.4 (bootstrap) Download SupportCustomer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportFront Page New Products Carousel for osC 2.3.4 (bootstrap) Download SupportIndex Nested - Product Listing for osC 2.3.4 (bootstrap) Download SupportMatch Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download SupportModular Category Page for osC 2.3.4 (bootstrap) Download SupportNEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download SupportNEW Equal Height Module for osC 2.3.4 (bootstrap) Download SupportProducts Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download SupportTwitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportUpcoming Products Modules for osC 2.3.4 (bootstrap) Download Support Assisted Add-onsScroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support Bootstrap Add-ons created by other membersosCommerce Bootstrap Addons and Code Link to comment Share on other sites More sharing options...
pmsmiers Posted January 25, 2015 Share Posted January 25, 2015 I use the Advanced Cache Control Tool and it works great but I use a superfish menu so in my work directory I have files like : categories_superfish_box-dutch.cache instead of categories_box_dutch.cache or something like that.How can I change Advanced Cache Control Tool so it sees the superfish version ? Quote Link to comment Share on other sites More sharing options...
auzStar Posted January 25, 2015 Author Share Posted January 25, 2015 @@pmsmiers Which superfish add-on are you using? as there are a few. I just tested with the "Superfish Categories Box" add-on http://addons.oscommerce.com/info/8851, which does successfully appear in the admin "Cache Control" tool (without any changes to the "Advanced Cache Control Tool"). Code similar to below needs to exist in these osCommerce files for the superfish add-on you're using to work with the cache system. 1. catalog\includes\functions\cache.php // Start superfish categories box //// // Cache the categories superfish box function tep_cache_categories_superfish_box( $auto_expire = false, $refresh = false ) { global $cPath, $language; $cache_output = ''; if( ( $refresh == true ) || !read_cache( $cache_output, 'categories_superfish_box-' . $language . '.cache' . $cPath, $auto_expire ) ) { if( !class_exists( 'bm_categories_superfish' ) ) { include( DIR_WS_MODULES . 'boxes/bm_categories_superfish.php' ); } $bm_categories_superfish = new bm_categories_superfish(); $cache_output = $bm_categories_superfish->getData(); write_cache( $cache_output, 'categories_superfish_box-' . $language . '.cache' . $cPath ); } return $cache_output; } // End superfish categories box 2. catalog\admin\includes\application_top.php // the following cache blocks are used in the Tools->Cache section // ('language' in the filename is automatically replaced by available languages) $cache_blocks = array(array('title' => TEXT_CACHE_CATEGORIES, 'code' => 'categories', 'file' => 'categories_box-language.cache', 'multiple' => true), array('title' => TEXT_CACHE_CATEGORIES_SUPERFISH, 'code' => 'categories_superfish', 'file' => 'categories_superfish_box-language.cache', 'multiple' => true), array('title' => TEXT_CACHE_MANUFACTURERS, 'code' => 'manufacturers', 'file' => 'manufacturers_box-language.cache', 'multiple' => true), array('title' => TEXT_CACHE_ALSO_PURCHASED, 'code' => 'also_purchased', 'file' => 'also_purchased-language.cache', 'multiple' => true) ); cheers Quote My Add-onsAdvanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download SupportAjax Product Listing for osC 2.3.4 (bootstrap) Download SupportCategory New Products Carousel for osC 2.3.4 (bootstrap) Download SupportCategory Popular Products Carousel for osC 2.3.4 (bootstrap) Download SupportCustomer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportFront Page New Products Carousel for osC 2.3.4 (bootstrap) Download SupportIndex Nested - Product Listing for osC 2.3.4 (bootstrap) Download SupportMatch Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download SupportModular Category Page for osC 2.3.4 (bootstrap) Download SupportNEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download SupportNEW Equal Height Module for osC 2.3.4 (bootstrap) Download SupportProducts Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download SupportTwitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportUpcoming Products Modules for osC 2.3.4 (bootstrap) Download Support Assisted Add-onsScroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support Bootstrap Add-ons created by other membersosCommerce Bootstrap Addons and Code Link to comment Share on other sites More sharing options...
radhavallabh Posted May 28, 2017 Share Posted May 28, 2017 Hi, On 19/12/2014 at 11:23 AM, auzStar said: Support Thread for Advanced Cache Control Tool for osCommerce version 2.3.x Report problems here. I will monitor this thread and try to answer as many questions as I can. Feedback and comments appreciated. Download link: http://addons.oscommerce.com/info/9189 Dom Can we use this addon to cache a output out a custom-categories.php fiile which outputs the nav bar in header of the store? Your guidance on this will be really helpful, Hope I could use your wonderful addon for this too.... The Category nav bar generated can be seen on my store at http://www.radhavallabh.com/radhakrishna-store Awaiting your respose; Very warm Regds/ radhavallabh Quote Link to comment Share on other sites More sharing options...
♥activeebiz Posted May 28, 2017 Share Posted May 28, 2017 2 hours ago, radhavallabh said: Hi, Can we use this addon to cache a output out a custom-categories.php fiile which outputs the nav bar in header of the store? Your guidance on this will be really helpful, Hope I could use your wonderful addon for this too.... The Category nav bar generated can be seen on my store at http://www.radhavallabh.com/radhakrishna-store Awaiting your respose; Very warm Regds/ radhavallabh That add-on is for managing existing oscommerce cache files. You are probably looking for something more like this: http://addons.oscommerce.com/info/2873 radhavallabh 1 Quote Link to comment Share on other sites More sharing options...
radhavallabh Posted May 28, 2017 Share Posted May 28, 2017 (edited) 9 minutes ago, activeebiz said: That add-on is for managing existing oscommerce cache files. You are probably looking for something more like this: http://addons.oscommerce.com/info/2873 Hi I went through this add-on previously but the main issue I am facing is getting it working with the complete category generation script on that file. IT shows on how to use it with array; text and cfgqueries beautifully. But when I tried incorporating it in my category file the whole script broke. Please if you could guide me in more detail.. it would be great Awaiting your valuable response Warm rgds Radhavallabh Edited May 28, 2017 by radhavallabh Quote Link to comment Share on other sites More sharing options...
radhavallabh Posted May 29, 2017 Share Posted May 29, 2017 18 hours ago, activeebiz said: That add-on is for managing existing oscommerce cache files. You are probably looking for something more like this: http://addons.oscommerce.com/info/2873 Hi; I tried implementing something like below instead.. But the output file is not writing to cache- Could you please enlighten me where am I going wrong- One more thing I am also trying to add the language id to it can you guide me also on how can that be done. <?php $file = '../includes/cache/cache_custom_categories.php'; //location of cache file $current_time = time(); $cache_last_modified = filemtime($file); //time when the cache file was last modified if(file_exists($file) && ($current_time < strtotime('+1 month', $cache_last_modified))){ //check if cache file exists and hasn't expired yet include($file); //include cache file }else{ ob_start(); //start output buffering ?> <?php /* big menu */ include(DC_BLOCKS . 'custom_categories.php'); /*big menu*/ $fp = fopen($file, 'w'); //open cache file fwrite($fp, ob_get_contents()); //create new cache file fclose($fp); //close cache file ob_end_flush(); //flush output buffered } ?> Awaiting your valuable reply; Warm Regds/ radhavallabh Quote Link to comment Share on other sites More sharing options...
radhavallabh Posted May 29, 2017 Share Posted May 29, 2017 Hi, Thank u for all your help.My issue has been solved using osc advanced cache class addon. Once again I would like to appreciate and thank for the guidance and support . Warm Regards/ radhavallabh Quote Link to comment Share on other sites More sharing options...
auzStar Posted June 7, 2017 Author Share Posted June 7, 2017 @radhavallabh That add-on is for managing existing osCommerce cache files only. cheers radhavallabh 1 Quote My Add-onsAdvanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download SupportAjax Product Listing for osC 2.3.4 (bootstrap) Download SupportCategory New Products Carousel for osC 2.3.4 (bootstrap) Download SupportCategory Popular Products Carousel for osC 2.3.4 (bootstrap) Download SupportCustomer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportFront Page New Products Carousel for osC 2.3.4 (bootstrap) Download SupportIndex Nested - Product Listing for osC 2.3.4 (bootstrap) Download SupportMatch Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download SupportModular Category Page for osC 2.3.4 (bootstrap) Download SupportNEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download SupportNEW Equal Height Module for osC 2.3.4 (bootstrap) Download SupportProducts Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download SupportTwitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download SupportUpcoming Products Modules for osC 2.3.4 (bootstrap) Download Support Assisted Add-onsScroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support Bootstrap Add-ons created by other membersosCommerce Bootstrap Addons and Code Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.