Jump to content

Can't disable smart cache for javascript


Recommended Posts

Hey,

I've been trying to disable the smart cache for javascript and it simply does not change. It stays on "yes". (In performance settings)

I've tried turning off PS_SMART_CACHE in the database table PS_CONFIGURATION as well, that didn't help either.

I am using prestashop 1.7.3.1 and the warehouse theme.

Link to comment
Share on other sites

On 4/13/2018 at 1:33 PM, MortenH said:

Hey,

I've been trying to disable the smart cache for javascript and it simply does not change. It stays on "yes". (In performance settings)

I've tried turning off PS_SMART_CACHE in the database table PS_CONFIGURATION as well, that didn't help either.

I am using prestashop 1.7.3.1 and the warehouse theme.

Same here.

Link to comment
Share on other sites

  • 4 weeks later...
On 13.4.2018 at 2:33 PM, MortenH said:

Hey,

I've been trying to disable the smart cache for javascript and it simply does not change. It stays on "yes". (In performance settings)

I've tried turning off PS_SMART_CACHE in the database table PS_CONFIGURATION as well, that didn't help either.

I am using prestashop 1.7.3.1 and the warehouse theme.

same for me, v1.7.3.2 

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...

It seems PS forgot to save value when disabled.

I've to add : $this->configuration->set('PS_JS_THEME_CACHE', $configuration['smart_cache_js']);

after line 99 : (if ($this->validateConfiguration($configuration)) {)

in method updateConfiguration of file /src/Adapter/Cache/CombineCompressCacheConfiguration.php

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...