ViewCacheHitEvent
in package
implements
IEvent
Event fired when a rendered view is served from cache.
This event is triggered when the view caching system finds a valid cached version of the requested view and returns it without rendering.
Use cases:
- Monitor cache effectiveness and hit rates
- Track performance improvements from caching
- Identify which pages benefit most from caching
- Optimize cache TTL based on hit patterns
- Generate cache performance reports
- Debug caching behavior and cache key generation
Table of Contents
Interfaces
- IEvent
- Core event interface for the Neuron event system.
Properties
- $cacheKey : string
- $controller : string
- $page : string
Methods
- __construct() : mixed
- getName() : string
Properties
$cacheKey read-only
public
string
$cacheKey
$controller read-only
public
string
$controller
$page read-only
public
string
$page
Methods
__construct()
public
__construct(string $controller, string $page, string $cacheKey) : mixed
Parameters
- $controller : string
-
Controller name
- $page : string
-
Page/view name
- $cacheKey : string
-
Cache key used for lookup
getName()
public
getName() : string