Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Cache Smarty Template

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-13-2002, 01:29 PM
 
paul paul is offline
 

Member
  
Join Date: Oct 2002
Posts: 13
 

Default Cache Smarty Template

Has anyone used smarty caching for their x-cart installation?

I would like to know how to enable caching for only certain template files.
Reply With Quote
  #2  
Old 11-22-2002, 10:29 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Caching should already be enabled.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 11-24-2002, 05:16 PM
 
paul paul is offline
 

Member
  
Join Date: Oct 2002
Posts: 13
 

Default

If you check smarty.class.php caching is set to false. I am able to cache templates within a template. by following FAQ at smarty site.

I wanted to know if anyone has done this and if so how much faster is it?
Reply With Quote
  #4  
Old 11-24-2002, 05:44 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

I had no idea caching wasn't enabled. Probably would be best to scour of the smarty.class mailing list archives, or do some testing.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #5  
Old 11-24-2002, 05:56 PM
 
paul paul is offline
 

Member
  
Join Date: Oct 2002
Posts: 13
 

Default

I am trying to optimize the performance of the cart by caching. However, home.tpl is always called and this contains many other templates so you cannot cache home.tpl else you get the same info.

The only way is to individually turn caching on and save an underlying template then turn cache off.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:52 PM.

   

 
X-Cart forums © 2001-2020