cacheViewForRoute()
cacheViewForRoute(string $view, string $route = false) : boolean
Cache full view for route
Parameters
| string | $view | |
| string | $route |
The StaticViewService is responsible for managing the storage and invalidation of static views. It is the core of CEO's dynamically-static (statically-dynamic?) caching system.
In order for the system to know what is cached with what view there are two components to watch for:
StaticViewService::cacheViewForRouteStaticViewService::linkRouteToContentThe first links a full view output to a route. The second links a route to a UUID. Knowing both, the system can properly invalidate cached views whenever content is updated.