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 8.0 ZTS with ext-parallel in Ubuntu

sudo apt install build-essential pkg-config autoconf bison re2c libxml2-dev \ libssl-dev libsqlite3-dev libcurl4-openssl-dev libpng-dev libjpeg-dev \ libonig-dev libfreetype6-dev libzip-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