From 450dfc4dd14c3471d10ab645464761773d737eec Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Wed, 7 Aug 2024 01:43:16 +0700 Subject: [PATCH] Add step to always enable opcache --- action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/action.yml b/action.yml index 27b6b27..8a6d15f 100644 --- a/action.yml +++ b/action.yml @@ -156,6 +156,13 @@ runs: sudo chmod 777 /etc/php.d cd ../ + - name: Enable opcache + shell: bash + run: | + echo zend_extension=opcache.so >> /etc/php.d/opcache.ini + echo opcache.enable=1 >> /etc/php.d/opcache.ini + echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini + - name: Cleanup shell: bash run: |