Categories
Linux

Get count of files in a Linux directory recursively

It is very simple:

for i in */ .*/ ; do 
    echo -n $i": " ; 
    (find "$i" -type f | wc -l) ; 
done
Categories
Magento

PHP 7.4 preloading feature for Magento

PHP 7.4 introduces the opcache preloading function. Its meaning is to load all the necessary scripts into memory at the stage of starting the PHP daemon. Let’s see if this feature is worth using in Magento?

Categories
Varnish

Reload Varnish VCL using varnishadm

You can reload Varnish config without losing your cache. To do this, you should use the standard varnishadm CLI utility.