All Projects → adlandh → bitrix-redis

adlandh / bitrix-redis

Licence: GPL-3.0 license
Bitrix Cache with phpredis / Кэш Битрикс на Redis

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to bitrix-redis

bitrix-memcached
Bitrix Cache with php-memcached / Кэш Битрикс на Memcached
Stars: ✭ 13 (-43.48%)
Mutual labels:  bitrix, bitrix-cache
bitrixclear
Чистый шаблон 1С-Битрикс / Clear template 1C-Bitrix
Stars: ✭ 20 (-13.04%)
Mutual labels:  bitrix
6umpukc
Тулинг для разработки сайтов и решений на Bitrix под Ubuntu/Windows
Stars: ✭ 13 (-43.48%)
Mutual labels:  bitrix
bitrix-elastic-indexer
Индексация инфоблоков Bitrix в Elasticsearch
Stars: ✭ 23 (+0%)
Mutual labels:  bitrix
bitrixtemplate stylish
Набор уроков по интеграции Bootstrap дизайна в 1С-Битрикс (набор демо-данных + шаблон 1C-Bitrix)
Stars: ✭ 39 (+69.57%)
Mutual labels:  bitrix
bitrix-module-tools
ООП Фреймворк разработки проектов на CMS Bitrix
Stars: ✭ 40 (+73.91%)
Mutual labels:  bitrix
bitrix-module-bunit
BUnit - фреймворк модульного тестрования для CMS Bitrix
Stars: ✭ 20 (-13.04%)
Mutual labels:  bitrix
bitrix-antispam
1C Bitrix anti-spam mod.
Stars: ✭ 10 (-56.52%)
Mutual labels:  bitrix
mvc.base
Базовый компонент Битрикс для простой реализации MVC
Stars: ✭ 14 (-39.13%)
Mutual labels:  bitrix
bitrix-i18n
The internationalization module for Bitrix CMS
Stars: ✭ 19 (-17.39%)
Mutual labels:  bitrix
demo.adminhelper
Example of a module created using Admin Helper
Stars: ✭ 30 (+30.43%)
Mutual labels:  bitrix
bxorder
OpenSource Bitrix Order
Stars: ✭ 62 (+169.57%)
Mutual labels:  bitrix
coffeediz.schema
Набор компонентов 1С-Битрикс для реализации микроразметки по схеме Schema.org
Stars: ✭ 14 (-39.13%)
Mutual labels:  bitrix
bx-data
Удобные классы для 1C-Bitrix.
Stars: ✭ 24 (+4.35%)
Mutual labels:  bitrix
bitrix
Bitrix24 REST API client that doesn't suck. Suffer no more.
Stars: ✭ 59 (+156.52%)
Mutual labels:  bitrix
hlhelpers
Набор методов для работы с highloadblock 1С-Битрикс
Stars: ✭ 18 (-21.74%)
Mutual labels:  bitrix

Поддержка кэширования Битрикс через phpredis v 1.6.1

(https://github.com/phpredis/phpredis)

Использование:

  • local/lib/cacheengineredis.php положить в /local/lib вашего сайта
  • bitrix/.settings_extra.php соотвественно в /bitrix
  • В разделе 'host' указать IP и порт вашего сервера redis
  • Вместо 'host' можно указать 'socket' - путь к файлу сокета (при этом 'host' игнорируется)
  • В разделе 'auth' указать пароль или false, если подключение без пароля
  • В разделе 'db' указать номер базы или false, если используется база по умолчанию
  • В разделе 'persistent' указать true, если хотите постоянное соединение к базе или false (по умолчанию)
  • В разделе 'serializer' указать какой сериализатор использовать. Поддерживается 'php' и 'igbinary'. По умолчанию - 'php'
  • В разделе 'sid' можно указать префикс, с которым будут сохраняться все данные кэша. Удобно при использовании несколькими сайтами одной базы в Redis.

Как настроить Redis:

  • Желательно увеличить значение переменной "tcp_backlog" для ускорения подключения при большом количестве клиентов. По умолчанию она равно 511. Возможно придется при этом изменить значение /proc/sys/net/core/somaxconn
  • Желательно установить в переменную "timeout" время в секундах, после которого отключатся неактивные клиенты.
  • Желательно закомментировать все строки с "save" для того, чтоб Redis не сохранял периодически ваш кэш на диск.
  • Желательно установить значение в переменную "maxmemory". В противном случае Redis сожрет всю доступную память на сервере.
  • Обязательно переменную "maxmemory-policy" устанавливаем в "allkeys-lru". В этом случае при недостатке памяти Redis будет удалять из базы все старые неиспользуемые ключи.

Bitrix Cache with phpredis v 1.6.1

(https://github.com/phpredis/phpredis)

Usage:

  • Put the file local/lib/cacheengineredis.php into the /local/lib directory of your website
  • Put the file bitrix/.settings_extra.php into the /bitrix directory
  • You can specify IP and port of your redis server in the section 'host'
  • Instead of 'host', you can specify path to socket in the section 'socket' (section 'host' will be ignored)
  • Specify your password to redis server in the section 'auth' or false if you don't use it.
  • Specify database number in the section 'db' or false if you use default database.
  • Specify true in the section 'persistent' if you want a persistent connection to database, otherwise - false (default)
  • Specify serializer in the section 'serialiazer'. 'php' & 'igbinary' is currently supported. Default is 'php'
  • You can specify the prefix for all the keys of the cache in the section 'sid'. It's convenient when several web sites use one database in Redis

How to setup Redis:

  • It is desirable to increase the value of "tcp_backlog" to decrease connection time with a large number of clients. It's 511 by default. Maybe it will be necessary to change the value in /proc/sys/net/core/somaxconn
  • It is desirable to set the value of "timeout" in seconds to close the connection after a client is idle
  • It is desirable to comment out all lines starting from "save" to prevent Redis to save your cache on disk.
  • It is desirable to set the value of "maxmemory". Otherwise Redis will use all available memory.
  • Be sure to set "maxmemory-policy" to "allkeys-lru". In this case all the old unused keys will be removed when Redis is out of memory.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].