How genaker/fastfpc works
Main Components
a) Entry Points Layer:
• Two possible entry points:
• Nginx (with auto_prepend_file configuration)
• Direct PHP inclusion (bootstrap.php/index.php)
b) FPC Extension Core:
• Composer integration component
• Plugin system (CacheIdentifierPlugin)
c) Storage Layer:
• Redis cache storage
• Connection handling through php_redis extension
d) Optional Integration:
• CloudFlare CDN Worker (as an optional external cache layer)
Component Relationships
• HTTP Request → Entry Points → FPC.php
• FPC.php ↔ Redis Cache
• FPC.php → CacheIdentifierPlugin (for cache key generation)
• Optional: System → CloudFlare Worker → End User
Architectural Patterns to Highlight
• Early Bootstrap Pattern: Show how the system intercepts requests before Magento's full bootstrap
• Plugin System: Demonstrate the extension point for cache identification
• Cache Layer Architecture: Multiple cache layers (Redis + optional CloudFlare)
Important Details
• Performance metrics (0.000481128 second FPC generation time)
• Required dependencies (php_redis extension)
• Magento version compatibility (2.4.7)
• Configuration points (Nginx configuration, deployment options)
Technical Stack Indicators
• PHP
• Redis
• Nginx
• Magento 2
• CloudFlare Workers (optional)
This design should clearly communicate how the extension achieves its sub-millisecond performance while maintaining compatibility with Magento 2's architecture.