Jump to content

Smarty Template Caching Bug?


Recommended Posts

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 instructions

BTW, I am using Presta 1.1

Now, 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

  • 1 month later...
  • 1 year later...
  • 2 years later...

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
×
×
  • Create New...