Jump to content

it seems enabling smarty cache is not a good practice for prestashop , is it right?


Recommended Posts

Hi ,

I think the subject says it all.
Just to expand the subject

I was trying rocky's suggestion on how to enable smarty cache, the thing is that after enabling it, the shop started to behave as not expected.
For instance, looking at products , no matter what product you choose , it will always bring you the same product and that is the same for categories

is there anything else to check besides this preferences in the smaty side.

$smarty->caching = 1;
$smarty->compile_check = true;
$smarty->force_compile = false;
$smarty->cache_lifetime = 600;

thanks for any advice

hugh

Link to comment
Share on other sites

disabling smarty caching is not a solution, we want using cache to really speed up the prestashop store
if u disable cache - data loads from compile folder, which are php files - they must be parsed on server
cache files are pure tpl files, that minimizes server load
BUT!
cache in prestashop simply not working, there is problem with it, also with dynamic blocks (produsts in the same category block, etc)

i have this problem on all my shops, which i have developed for my clients,
i have cache disabled on all of this, only compile_check activated, -force disabled
speed is at tolerable level

can anybody here had cache working?
if so, please post here how! :D

thanks!

Link to comment
Share on other sites

Hi ,

I think the subject says it all.
Just to expand the subject

I was trying rocky's suggestion on how to enable smarty cache, the thing is that after enabling it, the shop started to behave as not expected.
For instance, looking at products , no matter what product you choose , it will always bring you the same product and that is the same for categories

is there anything else to check besides this preferences in the smaty side.

$smarty->caching = 1;
$smarty->compile_check = true;
$smarty->force_compile = false;
$smarty->cache_lifetime = 600;

thanks for any advice

hugh


I have the same problem. My site was working 100% for the last year. Today it stops working. I have disabled caching so I can still sell but I wonder why this is happening all the sudden? From my site there is nothing changed but my provider migrated their servers. Maybe that has something to do with it???
Link to comment
Share on other sites

  • 7 months later...
  • 4 weeks later...

I've been having this problem when using a 3rd party site admin software (Magnetic One Prestashop Store Manager). Although category modifications made directly to the site database would appear in the site admin, the categories panel on the site homepage and CMS pages wouldn't refresh - the panel would show the updated categories on product pages.

I'm interested to know whether it's worth recommending to my clients to disable smarty cache when making category edits and re-activating afterwards - I can't notice a huge difference in site speed when not caching.

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