Install Brotli PHP extension on RunCloud

# Set module name MODULE_NAME=”brotli” # Set PHP version PHPRC_VERSION=”php74rc” # Download extension git clone –recursive –depth=1 cd php-ext-brotli

Install PHP 7.4 ZTS with ext-parallel in Ubuntu

sudo apt install bison re2c libxml2-dev libssl-dev libsqlite3-dev \ libbz2-dev libcurl4-openssl-dev libpng-dev libjpeg-dev libonig-dev \ libfreetype6-dev libxslt1-dev libzip-dev libwebp-dev libtidy-dev

Install APCu PHP extension on RunCloud

# Install required dev tools sudo apt install autoconf libpcre3-dev # Set module name MODULE_NAME=”apcu” # Set module version MODULE_VERSION=”5.1.18″

PHP real time flushing on Nginx

Works perfectly on RunCloud Native Nginx stack. @ini_set(‘zlib.output_compression’, ‘Off’); @ini_set(‘output_buffering’, ‘Off’); @ob_implicit_flush(1); @ob_end_clean(); header(‘Content-Encoding: none’); header(‘X-Accel-Buffering: no’);

Remove image sizes in WordPress

/** * Function to Remove image size. * @param [string] $size */ function remove_image_size_by_size($size) { $dimension = explode(‘x’, $size); global