agentsclimarketplace

Bitrix performance

Skill bxmaximum/bitrix-framework-skills/skills/bitrix-performance

AI-скиллы для Bitrix Framework (D7): ORM, контроллеры, роутинг, кеш, безопасность. npx skills add bxmaximum/bitrix-framework-skills. Открытый проект сообщества BXMax.

Install
npx -y skills add bxmaximum/bitrix-framework-skills --skill bitrix-performance

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

3 things to look at

  • 22 days oldThe repository was created 22 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 13 stars13 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Covers Bitrix performance — composite site, query optimization, replication/clustering, sharding, hot/cold sessions. Applied for high-load optimization beyond basic caching. Key terms — composite, NGINX, replication, sharding, query optimization.

SKILL.md

2.4 KB, 492 tokens by cl100k_base, as published. Nobody here has run it

Performance Optimization

Baseline: main 23.0+. Complements skills bitrix-caching, bitrix-sessions, and bitrix-database.

Composite Site

Technology caching static HTML while loading dynamic blocks via AJAX. Kernel entry points: \Bitrix\Main\Composite\Engine, \Bitrix\Main\Composite\Responder.

  1. Mark dynamic zones: <div data-dynamic="true">...</div> or frame mode APIs.
  2. Enable in Admin → Settings → Composite Site (Autocomposite or Composite mode).
  3. Configure NGINX to serve composite cache pool directly.
  4. Clear component cache before enabling.

Modes:

  • Autocomposite — kernel auto-detects static/dynamic.
  • Composite — manual zone configuration.

NGINX: point try_files to the composite cache pool directory (BitrixVM: Configure nginx to use composite cache).

Do not put personalized data in static zone (cart, user name, permissions).

Query Optimization

  • Limit ORM select fields.
  • Use indexes matching filter/order columns.
  • Avoid N+1 — fetchCollection() with relations.
  • Batch operations instead of per-row updates.
  • Enable ORM query cache where appropriate.
  • Use SqlTracker in dev to find slow queries (skill bitrix-database).

Replication and Clustering

  • MySQL master-slave for read scaling.
  • Extra connections via .settings.php connections and \Bitrix\Main\Data\ConnectionPool (Application::getConnectionPool() / Application::getConnection('name')).
  • Read-only analytics queries → separate connection.

Sharding

Horizontal partitioning for very large tables (enterprise scenarios). Kernel support varies by edition.

Hot/Cold Sessions

Related to separated session mode (bitrix-sessions):

  • Hot data (kernel $_SESSION['BX']) → encrypted cookies.
  • Cold data → Redis/DB backend.
  • Reduces storage round-trips on every hit.

Checklist

  • Composite tested with all dynamic blocks (cart, auth, personal).
  • NGINX composite cache configured in production.
  • Slow queries identified and indexed.
  • Session backend matches load (Redis for high-traffic).
  • File cache replaced with Redis/Memcached in production.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.