easyengine
easyengine copied to clipboard
✨️ Add cache update feature
Depends on: EasyEngine/site-command#387 EasyEngine/site-type-php#87 EasyEngine/site-type-wp#194 fixes https://github.com/EasyEngine/feature-requests/issues/92
@kirtangajjar Another approach can be to set the skip
variable in a different file.
Include the file in main.conf.
To turn it on/off just replace the skip
value to 1.
The only thing it won't do is, turn off/on X-SRCache-Fetch-Status
and X-SRCache-Store-Status
headers instead of just changing their values.
To me, that will not create any issue as the value on skip cache will be BYPASS
on both headers.
Implementation
-
/opt/easyengine/sites/example.com/config/nginx/conf.d/main.conf
# Redis NGINX CONFIGURATION
# set $skip 0;
include /usr/local/openresty/nginx/conf/conf.d/redis.conf;
-
/opt/easyengine/sites/example.com/config/nginx/conf.d/redis.conf
set $skip 0; # or 1 to BYPASS
now you just have to change redis.conf
.
Update:
We can put headers in a separate file. Then when not required we can make the file empty in order to disable the headers.
We can also add cache-related conditions to redis.conf
cc: @mrrobot47
hi checking if this is still actively being developed or maintained? We also have a recent use case to enable --cache from the update command.