Jump to content
slupostrupek

Page Cache by Chemo, 2.3 osc (Shopping Cart problem)

Recommended Posts

Hello,

 

I've install this addon: http://addons.oscommerce.com/info/2561

And it works, yet in 2.3 osc, there was changes in Boxes, new class for them etc.

 

So whole site is getting cached and i don't know how to make not caching the bm_shopping_cart. In install guide of chemo it's Step 7 makes problem.

 

"

STEP 7 - Edit includes/column_right.php (or wherever you have the shopping cart displayed)

 

Find this code:

require(DIR_WS_BOXES . 'shopping_cart.php');

 

And REPLACE it with this code:

if (!tep_session_is_registered('customer_id') && ENABLE_PAGE_CACHE == 'true' && class_exists('page_cache') ) {

echo "<%CART_CACHE%>";

} else {

require(DIR_WS_BOXES . 'shopping_cart.php');

}

"

How to solve that class problem. I would want to display here a shopping box, but i don't know how? How can i do this through class $osc_template ? is it possible? (i don't want whole column_right or left but only bm_shopping_cart)

Edited by slupostrupek

Share this post


Link to post
Share on other sites

Shit, sorry i paste wrong code :D

 

I mean point 4:

 

STEP 4 - Edit includes/application_top.php

 

Add this to the bottom of includes/application_top.php just above the "?>" closing tag:

ob_start();

require(DIR_WS_BOXES . 'shopping_cart.php');

$cart_cache = ob_get_clean();

# End the output buffer for cart and save as $cart_cache string

 

Here is shopping_cart (now it's got name bm_shopping_cart). And how to get get it in to that $cart_cache

Edited by slupostrupek

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

I have about 0,07 parse time better with this addon, so i don't understand why to not use it? I see only one thing is wrong in this plugin, there is missing cache deleting when there is new product in category and when product was edited, but it is not a big deal i think, it can be added not so hard i suppose.

 

 

so right now when it is first time visiting page i have about from 0,19 to 0,26 after this plugin it is always below 0,2s to 0,14s

Edited by slupostrupek

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×