Bleep Posted May 22, 2009 Share Posted May 22, 2009 Hi all, I'm fairly new to smarty templates, but it is my understanding that in the default installation of prestashop, smarty caching is disabled, correct? It certainly looks like it by the default smarty.config.inc.php file.So I am having trouble getting this caching to work. I made the flowing changes:1. config/smarty.config.inc.php -----> $smarty->caching = true;2. tools/smarty/smarty.class.php -----> var $caching = 1; var $cache_lifetime = 3600; var $cache_modified_check = true;3. 777 permissions on all files as specified in the install instructionsBTW, I am using Presta 1.1Now, after I made these changes, I got the cached tpl files in tools/smarty/cache/ which is a good sign. I do believe the pages load faster. However, when I make these changes, a few problems are introduced.I can view the info pages okay such as about-us, contact-us, etc. But the category pages and product pages do not load the correct things. For instance, I can click on any product or category link and all it does is reload the same page. Also, the title tag doesn't display the information and it places the name of my shop in front. Very strange stuff here. As soon as I change $smarty->caching back to 'false' my site is back to normal.I have been running my site with sef urls for months and have had many orders without any problems. I guess what I am wondering is:Am I configuring something incorrectly, am I missing a setting somewhere, or is there a bug somewhere?Any help would be greatly appreciated. Thank you. Link to comment Share on other sites More sharing options...
Bleep Posted May 23, 2009 Author Share Posted May 23, 2009 Is anyone experiencing this problem? I just read the documentation from smarty.net and it seems all of my configurations are correct. Anybody? Thanks. Link to comment Share on other sites More sharing options...
Ethan Posted June 27, 2009 Share Posted June 27, 2009 Hello, I confirm this problem. I have view another thread with this change in smarty.config.inc.php and don't has any problem. I searching this thread. (sorry for my english)Ethan78 Link to comment Share on other sites More sharing options...
vincents Posted July 23, 2010 Share Posted July 23, 2010 I have exactly the same problem, is there anyone having a solution to this? Link to comment Share on other sites More sharing options...
pashaps Posted September 10, 2012 Share Posted September 10, 2012 Seems like it's been a long time since this thread was active, but I'm having this same issue w/ v1.4.5.1 Can anybody offer a helping hand? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now