Cache Generation Guide
Data Helpers uses a persistent cache to store metadata about your DTOs. This cache dramatically improves performance by eliminating reflection overhead on subsequent requests.
Quick Reference
Section titled “Quick Reference”Warm Cache
Section titled “Warm Cache”# Warm cache for all DTOs in a directoryphp bin/warm-cache.php src/Dtos
# Warm cache for specific directoryphp bin/warm-cache.php app/DataTransferObjects
# Using Taskfiletask dev:cache:warmupClear Cache
Section titled “Clear Cache”# Clear all cachephp bin/clear-cache.php
# Using Taskfiletask dev:cache:clearProduction Deployment
Section titled “Production Deployment”For production deployments with MANUAL cache invalidation mode:
#!/bin/bash# Clear old cachephp bin/clear-cache.php
# Warm cache for all DTOsphp bin/warm-cache.php src/Dtos
# Deploy application# ...See Also
Section titled “See Also”- SimpleDto Caching - Cache invalidation strategies
- Cache Warming - Detailed cache warming documentation
- Configuration - Cache configuration options
