Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Advanced Cache Control Tool for osCommerce 2.3.x


auzStar

Recommended Posts

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 by auzStar

My Add-ons
Advanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download Support
Ajax Product Listing for osC 2.3.4 (bootstrap) Download Support
Category New Products Carousel for osC 2.3.4 (bootstrap) Download Support
Category Popular Products Carousel for osC 2.3.4 (bootstrap) Download Support
Customer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download Support
Front Page New Products Carousel for osC 2.3.4 (bootstrap) Download Support

Index Nested - Product Listing for osC 2.3.4 (bootstrapDownload Support
Match Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download Support
Modular Category Page for osC 2.3.4 (bootstrap)
Download Support

NEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download Support
NEW Equal Height Module for osC 2.3.4 (bootstrapDownload Support
Products Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download Support
Twitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap)
Download Support

Upcoming Products Modules for osC 2.3.4 (bootstrap) Download Support

 
Assisted Add-ons
Scroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support
 
Bootstrap Add-ons created by other members
osCommerce Bootstrap Addons and Code

Link to comment
Share on other sites

  • 1 month later...

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 ? 

Link to comment
Share on other sites

@@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

post-290729-0-88855400-1422189306_thumb.jpg

My Add-ons
Advanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download Support
Ajax Product Listing for osC 2.3.4 (bootstrap) Download Support
Category New Products Carousel for osC 2.3.4 (bootstrap) Download Support
Category Popular Products Carousel for osC 2.3.4 (bootstrap) Download Support
Customer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download Support
Front Page New Products Carousel for osC 2.3.4 (bootstrap) Download Support

Index Nested - Product Listing for osC 2.3.4 (bootstrapDownload Support
Match Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download Support
Modular Category Page for osC 2.3.4 (bootstrap)
Download Support

NEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download Support
NEW Equal Height Module for osC 2.3.4 (bootstrapDownload Support
Products Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download Support
Twitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap)
Download Support

Upcoming Products Modules for osC 2.3.4 (bootstrap) Download Support

 
Assisted Add-ons
Scroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support
 
Bootstrap Add-ons created by other members
osCommerce Bootstrap Addons and Code

Link to comment
Share on other sites

  • 2 years later...

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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 by radhavallabh
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

@radhavallabh

That add-on is for managing existing osCommerce cache files only. 

cheers

My Add-ons
Advanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download Support
Ajax Product Listing for osC 2.3.4 (bootstrap) Download Support
Category New Products Carousel for osC 2.3.4 (bootstrap) Download Support
Category Popular Products Carousel for osC 2.3.4 (bootstrap) Download Support
Customer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download Support
Front Page New Products Carousel for osC 2.3.4 (bootstrap) Download Support

Index Nested - Product Listing for osC 2.3.4 (bootstrapDownload Support
Match Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download Support
Modular Category Page for osC 2.3.4 (bootstrap)
Download Support

NEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download Support
NEW Equal Height Module for osC 2.3.4 (bootstrapDownload Support
Products Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download Support
Twitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap)
Download Support

Upcoming Products Modules for osC 2.3.4 (bootstrap) Download Support

 
Assisted Add-ons
Scroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support
 
Bootstrap Add-ons created by other members
osCommerce Bootstrap Addons and Code

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...