Categories
Varnish

Spontaneous loss of Varnish cache

You may notice that Varnish works well, but sometimes it completely loses the cache as the child process of Varnish is reloaded. This may be version independent and is accompanied by various errors, such as this one:

Categories
Linux

Sync SFTP remote folders via CLI in Linux

There are many utilities for synchronizing folders via SFTP on Linux, but most of them are visual (eg Filezilla). There are not so many good utilities for the command line. For example, there is the sftp utility, but it is not very convenient, you cannot synchronize the whole folder recursively using it. Therefore, here we will look at lftp, which works from the command line and allows you to do a lot of operations using the SFTP protocol.

Categories
Magento

Magento 2 Pagespeed Recommendations

Magento is a very slow e-commerce system and initially the pagespeed score is very low. To increase pagespeed, you need to take some steps, which I will describe. The post will be updated.

Categories
Magento

How to Reset Admin password in Magento 2

The easiest and probably the correct way to reset the Magento administrative password is to use the command line:

Categories
Magento

Opcache wasted memory

Opcache is a vital mechanism for caching opcodes, without which no PHP project can function properly. Opcache provides performance by storing compiled opcodes in RAM. Let’s figure out how it works and what wasted memory is.

Categories
Magento

Magento /app/code vs /vendor

Modules in Magento can be located in two places – /app/code and /vendor. Let’s consider what is the difference between them and where it is right to develop your modules. TLDR: it depends on the number of projects in your company.

Categories
Varnish

Varnish segfault because of libexecinfo.so

Varnish can fail not only because of misconfigured transient cache. It can fail because of bugs, for example in using libexecinfo. Sometimes you can see that Varnish’s child process fails and you lose all the cache due to it.

Categories
Linux Utilities

A simple way to copy emails from one account to another

If you need to copy emails from one mailbox to another, even if they are located on different servers, you can use the imapsync utility. You just need to install and run it in the console with parameters. Naturally, you need to know the passwords for both mailboxes.

Categories
Docker Linux Magento

Fluentbit does not follow the logs

Fluentbit can follow and parse logs and send them to different systems, for example, Newrelic or Elasticsearch. But you may notice, that for some reason it does not follow files or stops follow ones.

Categories
Magento Varnish

Setup Varnish Transient cache for Magento

As you know, Varnish is a powerful caching system and it is a must-have on every Magento setup, even at the development workstation. But there is a little trick that very few people know about. It is the Transient cache, which I explain below.