Re: how not to clear cache?

2008-05-23 Thread Adam Royle

Just define

function _clearCache($type = null) {

}

in your model, and the cache won't be cleared.

Adam

On May 23, 12:59 pm, robert123 <[EMAIL PROTECTED]> wrote:
> Right now I have a shopping_cart_product model. it belows to product
> model , below is the model code
>
> I caching all product view page, but everytime someone add an product,
> the ShoppingCartProduct, gets update and all my cached product view is
> deleted, is there anyway I can stop the clearing of cache view when
> this ShoppingCartProduct is changed. Thank you
>
>  class ShoppingCartProduct extends AppModel
> {
> var $name = 'ShoppingCartProduct';
> var $belongsTo = array('ShoppingCart', 'Product', 'Subproduct');
>
> }
>
> ?>
>
> www.generics.wswww.genericsmed.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



how not to clear cache?

2008-05-22 Thread robert123

Right now I have a shopping_cart_product model. it belows to product
model , below is the model code

I caching all product view page, but everytime someone add an product,
the ShoppingCartProduct, gets update and all my cached product view is
deleted, is there anyway I can stop the clearing of cache view when
this ShoppingCartProduct is changed. Thank you






www.generics.ws
www.genericsmed.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---