In the context of caching, the terms TTL (Time to Live), grace, and keep are often associated with controlling the lifetime of cached objects. These parameters are commonly used in caching systems like Varnish to manage how long an object should be considered valid and under what conditions it can still be served from the cache. Let’s explore each term:
In this article, we’ll explore the revolutionary influence of Just-in-Time (JIT) compilation on PHP 8’s productivity. Brace yourself for an enlightening exploration filled with intriguing facts and compelling numerical evidence.
SFTP service for Magento
Some of your suppliers and business partners may want to interchange files with your store via ftp/sftp. Usually it is orders and stock data in CSV or XML format. And we should to decide, how to hold this sftp service.
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:
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.
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.
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:
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.
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.
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.