How litespeedtech/lscache-opencart works
LiteSpeed Cache for OpenCart adds page caching, ESI fragments, cache variation, content-change purging, and cache-management actions to OpenCart installations. The main visitor path is handled by the catalog controller, which prepares cache behavior and ESI output for LiteSpeed; administrators can configure settings and trigger purges or recaching. The tree contains parallel OpenCart 2.3, 3.0, and 4.0 implementations. README capabilities such as automatic purging and recaching are retained, but their unsampled internal call paths are not inferred.
Main entry points: module/lscache.php Storefront controller 2.3 · module/lscache.php Storefront controller 3.0 · module/lscache.php Storefront controller 4.0 · module/lscache.php Admin controls 2.3
Components 28
Administration
- Admin controls 2.3
2.3/upload/admin/controller/extension/module/lscache.php - Settings model 2.3
2.3/upload/admin/model/extension/module/lscache.php - Admin controls 3.0
3.0/upload/admin/controller/extension/module/lscache.php - Settings model 3.0
3.0/upload/admin/model/extension/module/lscache.php - Admin controls 4.0
4.0/admin/controller/module/lscache.php - Settings model 4.0
4.0/admin/model/module/lscache.php - Admin settings UI 2.3
2.3/upload/admin/view/template/extension/module/lscache.tpl - Admin settings UI 3.0
3.0/upload/admin/view/template/extension/module/lscache.twig - Admin settings UI 4.0
4.0/admin/view/template/module/lscache.twig
Storefront caching
- Storefront controller 2.3
2.3/upload/catalog/controller/extension/module/lscache.php - Storefront settings 2.3
2.3/upload/catalog/model/extension/module/lscache.php - Storefront controller 3.0
3.0/upload/catalog/controller/extension/module/lscache.php - Storefront settings 3.0
3.0/upload/catalog/model/extension/module/lscache.php - Storefront controller 4.0
4.0/catalog/controller/module/lscache.php - Storefront settings 4.0
4.0/catalog/model/module/lscache.php
Cache engine
- Cache operations 2.3
2.3/upload/system/library/lscache/lscachebase.php - Cache core 2.3
2.3/upload/system/library/lscache/lscachecore.php - Cache operations 3.0
3.0/upload/system/library/lscache/lscachebase.php - Cache core 3.0
3.0/upload/system/library/lscache/lscachecore.php - Cache operations 4.0
4.0/system/library/lscache/lscachebase.php - Cache core 4.0
4.0/system/library/lscache/lscachecore.php
Platform variants
- Device detection 2.3
2.3/upload/system/library/Mobile_Detect/Mobile_Detect.php - Device detection 3.0
3.0/upload/system/library/Mobile_Detect/Mobile_Detect.php - Device detection 4.0
4.0/system/library/Mobile_Detect/Mobile_Detect.php
Other components
- Store visitor
- Administrator
- LiteSpeed server
- Catalog content changes
Connections 31
- Administrator → Admin controls 4.0: manages
4.0/admin/controller/module/lscache.php - Admin controls 4.0 → Cache core 4.0: purges cache
4.0/admin/controller/module/lscache.php - Admin controls 4.0 → Admin settings UI 4.0: renders
- Administrator → Admin controls 2.3: manages
- Administrator → Admin controls 3.0: manages
- Admin controls 2.3 → Cache core 2.3: purges cache
2.3/upload/admin/controller/extension/module/lscache.php - Admin controls 3.0 → Cache core 3.0: purges cache
3.0/upload/admin/controller/extension/module/lscache.php - Admin controls 2.3 → Admin settings UI 2.3: renders
- Admin controls 3.0 → Admin settings UI 3.0: renders
- Admin controls 2.3 → Settings model 2.3: updates settings
- Admin controls 3.0 → Settings model 3.0: updates settings
- Admin controls 4.0 → Settings model 4.0: updates settings
- Store visitor → Storefront controller 4.0: requests page
- Storefront controller 4.0 → Storefront settings 4.0: reads settings
- Storefront controller 4.0 → Cache core 4.0: uses cache core
4.0/catalog/controller/module/lscache.php - Storefront controller 4.0 → Device detection 4.0: detects device
- Storefront controller 4.0 → LiteSpeed server: sets cache headers
- Store visitor → Storefront controller 2.3: requests page
- Store visitor → Storefront controller 3.0: requests page
- Storefront controller 2.3 → Storefront settings 2.3: reads settings
- Storefront controller 3.0 → Storefront settings 3.0: reads settings
- Storefront controller 2.3 → Cache core 2.3: uses cache core
- Storefront controller 3.0 → Cache core 3.0: uses cache core
- Storefront controller 2.3 → Device detection 2.3: detects device
- Storefront controller 3.0 → Device detection 3.0: detects device
- Storefront controller 2.3 → LiteSpeed server: sets cache headers
README.md - Storefront controller 3.0 → LiteSpeed server: sets cache headers
README.md - Catalog content changes → Cache core 4.0: purges related pages
README.md - Catalog content changes → Cache core 4.0: purges ESI
README.md - Catalog content changes → Cache core 2.3: purges related pages
README.md - Catalog content changes → Cache core 3.0: purges related pages
README.md