redis cache clear cron

sudo nano /usr/local/vesta/bin/redis-cron.sh

code like below

#!/bin/bash
redis-cli flushall
echo ‘done’

chmod u+x script.sh -make it executable

 

Leave a Reply

Your email address will not be published. Required fields are marked *