Skip to content

v0.3.9

Choose a tag to compare

@recca0120 recca0120 released this 14 Jan 16:42
· 5 commits to main since this release
2c3904d

What's Changed

Refactored

  • Use stable identifier for cache key instead of fingerprint (#30)
    • Added getIdentifier() method to RouteLoaderInterface
    • Cache key is now based on stable identifier (md5 of paths/storage class)
    • Fingerprint is used only for cache validation, not as key
    • Prevents orphaned cache entries when source data changes

Files Changed

  • includes/Contracts/RouteLoaderInterface.php - Added getIdentifier() method
  • includes/Routing/FileLoader.php - Implemented stable identifier using md5 of sorted paths
  • includes/WordPress/WordPressLoader.php - Implemented stable identifier using md5 of storage class
  • includes/Routing/CachedRouteLoader.php - Use identifier for cache key, fingerprint for validation

Full Changelog: v0.3.8...v0.3.9