Payments are experiencing issues due to temporary restrictions in Russia. If your payment does not go through, please submit a support request.Our support team is available 24/7 — we are always here to help with hosting and server issues.We are now accepting requests for dedicated server rental and colocation services in our data center.Reminder: we recommend enabling backups for additional data protection.A new VPS/VDS lineup with NVMe storage and improved performance is now available.Maintenance work on some servers has been completed. All services are operating normally.
BHelp: Automatic deletion of outdated cache

MODULE FOR 1C-BITRIX

Borozdin Alexey Grigorievich

BHelp: Automatic deletion of outdated cache

BHelp: Automatic Removal of Stale Cache The BHelp module is designed for automatic cache cleaning of websites on the 1C-Bitrix: Site Management platform, managing cached data, monitoring free disk space, and analyzing file cache usage.

Technical details

Published
19 November 2026
Version
1.8.4
Installed
Fewer than 50 times
Compatible editions
First Site, Start, Standard, Small Business, Business
Responsive design
No
Composite support
No
Compatible with Sites24
No
Developer
Borozdin Alexey Grigorievich

What this solution does

BHelp: Automatic Removal of Stale Cache

The BHelp module is designed for automatic cache cleaning of websites on the 1C-Bitrix: Site Management platform, managing cached data, monitoring free disk space, and analyzing file cache usage. The solution helps remove expired cache files, free up disk space, control the size of component and information block caches, and automate site maintenance without constant administrator involvement.

The module supports scheduled cache cleaning, execution via cron or agents, resetting information block caches after 1C exchange, disk space monitoring, and detailed cleaning statistics. It is suitable for corporate websites, online stores, product catalogs, and other projects based on 1C-Bitrix.

Automatic 1C-Bitrix Cache Cleaning

Over time, a website's file cache can occupy a significant amount of space on the server. The BHelp module allows you to configure regular removal of outdated standard cache files using 1C-Bitrix tools.

The BHelp module provides automatic deletion of expired files from the standard file cache. Cleaning can be scheduled at intervals of 1, 3, 6, 12, or 24 hours, as well as once a week. The process can be launched via standard agents of the 1C-Bitrix system or through a separate cron script. Administrators can configure the allowed execution time, enabling maintenance to be shifted to night hours to minimize server load during peak visitor activity.

Management of file cache cleaning and infoblock cache reset is implemented separately. For example, automatic deletion of outdated site cache can be set for every 24 hours, with execution restricted to night time only. It is important to note that scheduled file cleaning removes only expired files from the standard cache and is not intended for the unconditional deletion of all cached site data.

The module also supports automatic reset of managed cache for selected 1C-Bitrix infoblocks by tags. A unique cleaning period can be set for each infoblock. This feature is convenient for product catalogs, news, articles, service sections, and other dynamically updated data. When resetting by tag, the entire cache registered under the corresponding infoblock tag is invalidated, including records whose validity period has not yet expired.

The BHelp module provides automatic removal of outdated cache. Operation requires the installed iblock module and enabled managed caching. The solution is designed for online stores on the 1C-Bitrix platform and automatically clears the cache after updating the product catalog and exchanging data with 1C.

Supported cleanup scenarios:

- Automatic cleanup after successful import of an XML file from 1C.

- Cache reset after mass addition of products and infoblock elements.

- Cleanup after mass changes to elements and their properties.

- Ability to select specific infoblocks for tracking update events.

- Separate configuration of event-based cleanup independent of the scheduled plan.

- Deferred queuing of cleanup tasks if events occur outside permitted hours.

- Use of a server-side method to complete mass updates for custom import handlers.

These features allow automation of cached catalog data updates following supported import operations and mass product changes. Note that the event mechanism works only with events supported by the Bitrix platform. Direct data changes via SQL queries or imports without generating corresponding events are not tracked automatically.

A function to verify the cache cleanup process without actually deleting files is also available.

Before starting automatic cache cleanup, an administrator can run a dry run. This function allows estimating the volume of expired file cache that could potentially be deleted without making any changes to the system.

The dry run capabilities include analyzing the standard file cache directory, counting the number of detected expired files, and calculating their total size in megabytes. The process uses saved cleanup settings, but no files are deleted or modified. Files for which the expiration date could not be determined are skipped. If the execution time reaches the set limit, a partial result is displayed.

This function is useful for preliminary assessment before automatic site maintenance. Note that the dry run does not calculate the volume freed when clearing cache by tags, nor does it analyze data from Redis or Memcached.

The module provides tools for controlling automatic cache cleanup in the Bitrix environment and analyzing maintenance results. The administrative panel offers the following statistics: total number of cleanup runs, count of successful and failed operations, estimated freed disk space, and the number of deleted files.

The BHelp module provides automatic removal of outdated cache with extended analysis and control capabilities. The system records the duration of cleanup operations and generates daily summary statistics. Graphs are available for visualizing module operation, and a detailed log of all performed operations is maintained. The log supports filtering by date, launch source, and execution result, and allows exporting data in CSV format. The retention period for log entries is configurable and can reach up to two years. The resulting statistics enable evaluation of cleanup efficiency, tracking of errors, and control of automated maintenance operations.

BHelp includes a separate system for monitoring disk space and the size of the website's file cache. This tool helps timely detect cache growth and a decrease in available space on the server. The monitoring functionality includes checking free disk space and controlling the total size of the file cache. The check frequency is configurable and can be set to 1, 3, 6, or 24 hours. Users can set threshold values in gigabytes and percentages. The system supports separate enabling of email notifications for exceeding established thresholds. A repeated notification for the same issue is sent no more than once per day. Notifications resume upon a new threshold breach after confirmation that normal conditions have been restored.

Monitoring runs via a separate agent independently of the cache cleanup schedule and allowed execution time windows. By default, monitoring and associated email notifications are disabled.

Cache folder and Bitrix component size analysis

The module helps identify site directories and components that occupy the most disk space. The administrative panel provides file cache analysis with sorting by volume and file count.

Analysis tools

Top 20 largest cache folders.

Top 20 components by cached file size.

File count in each directory.

Cache size in megabytes.

Percentage share of the total analyzed volume.

Top 10 largest folders and components chart.

Disk usage visualization.

Component identification based on cache path structure and the list of installed components.

Separate display of data that could not be matched to a specific component.

For convenience, paths are displayed relative to the site root. The full absolute path is available in a tooltip.

Chart labels are placed above bars to ensure values remain readable.

Cache directories analyzed by default

The BHelp module manages the automatic removal of stale cache, including managed_cache, stack_cache, html_pages, and upload/resize_cache. Administrators can specify a custom list of folders for analysis, which replaces the standard set of directories. Note that analyzing folder sizes does not trigger automatic deletion; cleaning expired files and resetting cache by tags are configured separately.

The module supports sending email notifications to the site administrator when issues arise. Notifications are triggered by recurring errors in automatic cache cleaning, the stopping of cron execution, insufficient free disk space, or exceeding the set threshold for file cache size. Monitoring notifications are enabled separately, and their delivery depends on the correct configuration of the 1C-Bitrix mail system.

An informational widget is available on the administrative desktop for quick cache status control. The widget displays the date and time of the last cleanup, the result of the last run, an estimate of freed space, the number of errors in the last 24 hours, and the current saved cache size indicator.

The widget uses preloaded data and does not trigger a re-scan of folders when the administrative panel is opened. Automatic cache clearing is useful for online stores on the 1C-Bitrix platform to reset the cache of specific information blocks after synchronization with 1C or during mass updates of prices, stock levels, and characteristics via supported mechanisms. Corporate websites gain the ability for scheduled removal of expired file cache and control of disk space usage. In large product catalogs, the tool analyzes component cache size, identifies the most voluminous sections, and assists in configuring maintenance. For sites with limited disk space, the system monitors free space, issues alerts when thresholds are exceeded, and controls file cache growth. High-traffic projects allow scheduled maintenance to be shifted to nighttime hours using cron for background tasks. Websites with regular content updates automatically reset the cache of selected information blocks after supported mass data change operations. The module provides user access rights segregation for the administrative panel, along with viewing statistics, monitoring results, and event logs.

The BHelp module automates cache cleanup, monitoring, and management processes. The interface is available in Russian and English. The solution is compatible with the 1C-Bitrix platform.

The following conditions are required for stable operation:

- PHP version 8.2 or newer;

- 1C-Bitrix main module version 24.0 or higher;

- UTF-8 encoding;

- MySQL database.

Supported editions of the "1C-Bitrix: Site Management" system:

- First Site;

- Start;

- Standard;

- Small Business;

- Expert;

- Business.

Standard file cache cleanup is performed using built-in tools of the Bitrix main module. To reset the infoblock cache, the iblock module must be installed and managed caching must be enabled. Automatic cleanup after data exchange with 1C is possible only if the corresponding e-commerce catalog import mechanism is present.

Cleanup of expired files and infoblock cache reset by tags operate as independent mechanisms. Dry run mode checks only expired files of the standard file cache and does not calculate the result of tag-based reset. Data in Redis and Memcached systems is not cleaned by the file cleanup mechanism; their metrics are displayed separately if a supported configuration is present.

Disk analysis accounts for actual files, so available space may differ from the quota set by the hosting provider.

Agents triggered by hit events depend on site traffic. To ensure regular task execution without visitors, cron must be configured.

Disk monitoring operates independently from the cache clearing mechanism.

Monitoring, email notifications, and event scenarios are disabled by default.

Direct SQL modifications and non-standard imports without supported Bitrix events do not trigger automatic event-based clearing.

BHelp: Automatic Removal of Stale Cache combines scheduled maintenance tools, cached file control, and disk space monitoring into a single module.

Instead of constant manual checks, administrators receive configurable automatic clearing, an operation log, analysis of the largest folders and components, free space control, and problem notifications.

The module helps maintain order in the site's file cache, control disk space usage, and automate cache clearing for selected information blocks after data updates.

The BHelp module for 1C-Bitrix automates the cleanup of stale cache, tracks its size, and allows site maintenance management via the administrative panel. The tool helps control disk space by removing expired files, resetting cache for selected information blocks, maintaining an operation log, and displaying which folders and components occupy the most space.

Automatic cleanup

- Removal of stale files from the standard file cache using Bitrix tools. Available intervals are 1, 3, 6, 12, and 24 hours, as well as one week.

- Execution via an agent on page hits or through a separate cron script. Allowed execution hours can be configured based on server time, for example, during night hours.

- Separate cache reset periods for information blocks by tags. This operation affects the information block cache registered under the specified tag, including currently active entries.

- Cleanup after successful import of an XML file from 1C, as well as after mass addition or modification of elements and their properties. Information blocks for these events are selected independently of the periodic schedule.

- Events occurring outside allowed hours are queued. A server-side method is provided to complete mass updates for custom imports.

The Dry Run feature analyzes the standard cache folder to count expired files and their total volume in megabytes without deleting any data. The evaluation uses saved settings. Files with unrecognized expiration dates are skipped. If the execution time exceeds the set limit, a partial result is displayed.

Statistics and Logs

The system records the number of runs and errors, estimates freed space, counts deleted files, and tracks cleanup duration. It provides charts and daily summaries. The log supports filtering by date, source, and result, and allows CSV export. Log retention can be configured for up to two years.

Email notifications are sent for recurring cleanup errors or when the cron job stops.

Disk Monitoring and Cache Analysis

Dedicated monitoring tracks free space and file cache size with check intervals of 1, 3, 6, or 24 hours. Thresholds are set in gigabytes or percentages; alert settings are configured separately.

The same issue triggers a notification no more than once per day. After a recovery is confirmed, a new threshold breach will generate a fresh notification.

The system generates a top-20 list of folders and components by size and file count, showing their share of the total volume. Charts display the top-10 items and disk usage. Components are identified by the cache path and the list of installed modules; data without a known component association is grouped separately.

Diagram labels are displayed above the bars without truncation. Paths within the site are shortened to relative paths from the root; full paths are shown in tooltips.

The desktop widget displays the last launch date, the final result, the amount of freed space, the number of errors within the last 24 hours, and the current cache size. The widget uses pre-prepared data and does not scan folders when the dashboard is opened.

Use cases

Scheduled cleanup of accumulated expired cache, cache reset for the catalog after data import, night-time system maintenance, search for the largest cache folders, and administrator notification of insufficient disk space.

Permissions and compatibility

Access levels are provided for viewing statistics and logs, as well as for managing settings. The interface is fully translated into Russian and English. Core file cleanup relies on the main module; infoblock functions require the iblock module and an enabled managed cache. Processing the 1C exchange event requires a corresponding mechanism for importing the trade catalog.

Environment requirements: PHP 8.2 or newer, main module version 24.0 or newer, UTF-8 encoding, MySQL database.

Supported editions of 1C-Bitrix: Site Management: First Site, Start, Standard, Small Business, Expert, Business.

Operational features

Dry run mode does not calculate the size of tag-based resets and does not apply to data in Redis or memcached. Metrics for these storage systems are displayed separately when supported configuration is available. The disk report accounts only for files; free space on the file system may differ from the hosting quota.

By default, the cache, managed_cache, stack_cache, html_pages, and upload/resize_cache directories are analyzed. User-defined measurement directories replace this default list. Analyzing directories does not imply their automatic deletion: standard cleanup of expired files and tag-based resets are configured separately. Monitoring, email notifications, and event scenarios are disabled by default.

Monitoring operates as a separate agent and is independent of the cleanup switch or its schedule. For sites without visits, a configured cron for agents is required. Notification delivery depends on the site's mail configuration. Direct SQL updates and imports without supported events are not automatically tracked.

When needed, General iT can implement “BHelp: Automatic deletion of outdated cache”, configure the module and verify it against the current website setup.

USER EXPERIENCE

Solution reviews

How does this solution work in a real project? Share your experience and help others choose.

Be the first to share your experience

There are no reviews of this solution on git.ru yet. Tell us what worked well and what could be improved.

Verified purchaseAdd a key if you wish. A verified review gets a badge, priority placement and more rating weight.

Open to every clientJust sign in to your account. A key is optional; all reviews are moderated.

YOUR EXPERIENCE MATTERS

Your review

YOUR PROJECT INFRASTRUCTURE

A home for your website

BEFORE YOU ORDER

Let’s go through the details.

What does the price cover?
The displayed price covers the solution itself. Platform licensing, installation and customisation are checked separately. If the page offers bundles, select the required option before submitting a request.
How do I check compatibility?
Compare the supported editions and solution version in the technical details with your project. Before installing on a live website, we recommend making a backup and checking the solution in a test environment.
Is there a trial?
The developer lists a trial of 7 days. The trial button opens the installer in your website control panel. Check the required features and compatibility before purchasing.
How much does this solution’s renewal cost?
The current renewal price is 1,000 ₽. Before you order, a manager will confirm the renewal period and whether it applies to your licence.
Can you help with implementation?
We can help install the module, check its settings and verify how it works in your project. Compatibility with other customisations and the scope of work are assessed before we begin.

GENERAL iT

Let’s discuss your project

Получатель: ООО «Дженерал Ай Ти Рус»

1C-BITRIX

Install solution

Enter a domain with or without https://. The installer will open in your website control panel in a new tab.

Solution screenshots

Solution screenshot