You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cloudlinuxos/shared-pro/README.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1293,7 +1293,7 @@ This design eliminates per-request regex compilation in `.htaccess`, resulting i
1293
1293
1294
1294
AccelerateWP uses this module to serve the correct static page without invoking PHP or writing complex RewriteRule-based configurations. This document summarizes the module's directives and describes how any page cache plugin can integrate with the same capabilities.
1295
1295
1296
-
The module includes two independent subsystems: **cache serving** (serves pre-generated static HTML files, bypassing PHP) and **HTCache** (caches parsed `.htaccess` files in shared memory, eliminating per-request disk I/O). Both are included in the same `ea-apache24-mod_maxcache` package and can be enabled independently.
1296
+
The module includes two independent subsystems: **cache serving** (serves pre-generated static HTML files, bypassing PHP) and **full .htaccess caching** (caches parsed `.htaccess` files in shared memory, eliminating per-request disk I/O). Both are included in the same `ea-apache24-mod_maxcache` package and can be enabled independently.
1297
1297
1298
1298
:::warning Note:
1299
1299
MAx Cache is currently supported on cPanel control panels only.
| `libmaxcache` | Shared C library for device detection, WebP, cookie/QS handling |
1318
1318
1319
-
After installation, the HTCache subsystem is enabled by default (`MaxCacheHTCache On`) and the `maxcache-htcache-watchd` daemon is automatically started and enabled on boot.
1319
+
After installation, the full .htaccess caching subsystem is enabled by default (`MaxCacheHTCache On`) and the `maxcache-htcache-watchd` daemon is automatically started and enabled on boot.
1320
1320
1321
1321
### MAx Cache Activation Guide
1322
1322
@@ -1898,19 +1898,19 @@ MAx Cache will not work in AccelerateWP when:
1898
1898
* Using the AccelerateWP PHP filter to replace dots with underscores.
1899
1899
* Using the AccelerateWP PHP filter forces the full path to cache files instead of using DOCUMENT_ROOT.
1900
1900
1901
-
### HTCache (.htaccess caching)
1901
+
### Full .htaccess caching
1902
1902
1903
-
HTCache is the second subsystem of `mod_maxcache`. It caches parsed `.htaccess` files in shared memory, so Apache does not re-read and re-parse them from disk on every request. On shared-hosting servers with thousands of sites, this eliminates thousands of `stat()` and `open()` syscalls per second.
1903
+
Full .htaccess caching is the second subsystem of `mod_maxcache`. It caches parsed `.htaccess` files in shared memory, so Apache does not re-read and re-parse them from disk on every request. On shared-hosting servers with thousands of sites, this eliminates thousands of `stat()` and `open()` syscalls per second.
1904
1904
1905
-
HTCache benefits **all** `.htaccess`-heavy sites regardless of whether MAx Cache page caching is enabled.
1905
+
Full .htaccess caching benefits **all** `.htaccess`-heavy sites regardless of whether MAx Cache page caching is enabled.
1906
1906
1907
1907
#### How it works
1908
1908
1909
-
By default, Apache re-reads and re-parses `.htaccess` files from disk on every request. On shared-hosting servers with thousands of sites, this creates significant disk I/O overhead. HTCache parses each `.htaccess` once (on first request) and stores the result in shared memory so all Apache workers can reuse it without touching the disk again. The cache populates lazily as traffic arrives.
1909
+
By default, Apache re-reads and re-parses `.htaccess` files from disk on every request. On shared-hosting servers with thousands of sites, this creates significant disk I/O overhead. Full .htaccess caching parses each `.htaccess` once (on first request) and stores the result in shared memory so all Apache workers can reuse it without touching the disk again. The cache populates lazily as traffic arrives.
1910
1910
1911
1911
#### Change detection
1912
1912
1913
-
HTCache detects `.htaccess` changes through two mechanisms:
1913
+
Full .htaccess caching detects `.htaccess` changes through two mechanisms:
1914
1914
1915
1915
| Mode | Detection latency | When active |
1916
1916
| --- | --- | --- |
@@ -1927,14 +1927,14 @@ On CloudLinux 9+ (kernel 5.14+), all change types — including deletes, renames
1927
1927
1928
1928
#### Configuration directives
1929
1929
1930
-
All HTCache directives go inside `<IfModule mod_maxcache.c>` in the Apache configuration. HTCache is configured in `/etc/apache2/conf.d/maxcache_htcache.conf`.
1930
+
All full .htaccess caching directives go inside `<IfModule mod_maxcache.c>` in the Apache configuration. Full .htaccess caching is configured in `/etc/apache2/conf.d/maxcache_htcache.conf`.
1931
1931
1932
1932
#### MaxCacheHTCache
1933
1933
1934
1934
* **Syntax**: `MaxCacheHTCache On|Off`
1935
1935
* **Default**: On (in shipped config)
1936
1936
* **Context**: server config, virtual host
1937
-
* **Description**: Master enable/disable switch for the HTCache subsystem.
1937
+
* **Description**: Master enable/disable switch for the full .htaccess caching subsystem.
1938
1938
1939
1939
#### MaxCacheHTCacheRevalidateInterval
1940
1940
@@ -1965,7 +1965,7 @@ All HTCache directives go inside `<IfModule mod_maxcache.c>` in the Apache confi
* **Description**: Maximum `.htaccess` file size (in KB) that HTCache will process. Files exceeding this limit are skipped and served via Apache's standard processing. Set to `0` for unlimited.
1980
+
* **Description**: Maximum `.htaccess` file size (in KB) that full .htaccess caching will process. Files exceeding this limit are skipped and served via Apache's standard processing. Set to `0` for unlimited.
0 commit comments