From d8408ec0f20203f822ed0a17b53eb4ba2dd9f993 Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Wed, 22 Jul 2015 16:57:21 +0530 Subject: [PATCH] Update timeout redis-hhvm --- install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install b/install index c712d008..0fdca708 100644 --- a/install +++ b/install @@ -397,6 +397,13 @@ function ee_update_latest() sed -i "s/X-Cache-2 /X-SRCache-Store-Status /g" /etc/nginx/common/redis.conf &>> /dev/null fi + # Update Timeout redis-hhvm.conf + if [ -f /etc/nginx/common/redis-hhvm.conf ]; then + grep -0 'redis2_query expire $key 6h' /etc/nginx/common/redis-hhvm.conf &>> /dev/null + if [ $? -eq 0 ]; then + sed -i 's/redis2_query expire $key 6h/redis2_query expire $key 14400/g' /etc/nginx/common/redis-hhvm.conf &>> /dev/null + fi + fi }