Jump to content

Enable cache via cli


Recommended Posts


I want to enable cache via cli in order to do automatically on demand.

I know how can I clear cache:

/usr/bin/php8.1 bin/console cache:clear -e prod

But I don't find any way to activate the cache.

In case that is possible to active via console, how can I add "memcached" and a server in cache config (from cli)?

Thanks in advance.



Link to comment
Share on other sites

On 3/22/2024 at 1:52 PM, Krystian Podemski said:

Hello David

You can try to use prestashop:config command.


Hello Krystian,

Thank you for your reply.

I followed the documentation, but it doesn't indicate how to activate the cache from cli.

Do you have any command to try?

Or do you know what parameters I need to modify on database in order to activate?

Thanks in advance.


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