LuckyBX Русский
Sites

Cache

Bitrix keeps its cache in Redis or in files. After site finish the cache is in Redis.

luckybx site cache shop.example.com
luckybx site cache shop.example.com files
luckybx site cache shop.example.com redis

The choice is remembered, and site finish does not change it later.

Why this is not in the admin area#

The Bitrix admin area has no setting for where the cache is kept. It is written in the bitrix/.settings.php file, and that is what the command edits.

The site shows old content#

The site cache is cleared in the Bitrix admin area: "Settings", "Product settings", "Autocaching", the "Clear cache files" tab. What is in Redis is cleared too.

When a site is created, deleted or restored from a backup, LuckyBX clears its cache itself.

Your own storage#

If you need another option, for example Memcache, write a cache section in bitrix/.settings_extra.php. Bitrix takes it instead of its own, and LuckyBX does not touch this file.

Redis on the server#

The server has two separate Redis instances: the main one and one for cache. When the cache one runs out of space, old entries are evicted, and the data in the main one is not affected. On AlmaLinux 10 and CentOS Stream 10 Valkey is installed instead of Redis, which makes no difference to a site.