Skip to content

Releases

v2.1.0

Choose a tag to compare

@silviooosilva silviooosilva released this 31 Oct 18:54
a252278

What's Changed

Full Changelog: v2.0.0...v2.1.0

v2.0.0

Choose a tag to compare

@silviooosilva silviooosilva released this 11 Oct 22:43

Cacheer Monitor 2.0 gives CacheerPHP 6 a new dashboard, a new visual identity, and better tools for understanding cache behavior. It records CacheerPHP's typed telemetry automatically and turns it into cache efficiency, lifecycle, latency, and key-level diagnostics.

Highlights

  • New brand and dashboard. A new logo, responsive workspace navigation, dark and light themes, clearer charts, and bundled fonts, icons, and Chart.js. Keyboard navigation, focus indicators, inspector focus trapping, and reduced-motion support improve accessibility.
  • Lifecycle diagnostics. Inspect stale responses, refreshes, tier promotions, and lock contention alongside cache hits, misses, and operation latency over the selected time range.
  • Problem-key rankings. Find keys with the most misses, errors, hits, or highest p95 operation latency. Timed sample counts help put latency measurements in context.
  • Configurable health rules. Set hit-rate, error-count, and p95 latency thresholds, minimum sample counts, sustained-condition duration, and snooze behavior. Settings persist in the browser; warnings are evaluated while the dashboard is open.
  • Clearer key inspection. Filter history by key and recorded driver, inspect captured values, and request live previews from supported File, Database, and Redis stores. Unavailable lookups explain the reason and preserve the last captured preview.

Reliability and maintenance

  • The Composer autoload bridge connects to CacheerPHP 6's telemetry tap, covering caches built through named constructors, the builder, direct construction, and decorators. cacheer-monitor doctor reports bridge status, listener registration, the events path, and recorded event count.
  • Dashboard snapshots combine metrics, timeline, coverage, and the limited event feed. Overview metrics cover matching records in the current log independently of the feed limit; rotated logs are excluded.
  • Scoped live previews resolve a value only when its display name identifies one stored entry. Ambiguous names use captured previews instead of guessing.
  • Log clearing and rotation share the reporter's lock. Repeated rotations retain separate archives, and cleanup removes only recognized archives belonging to the configured events file, preserving unrelated files and symbolic links.
  • Destructive dashboard actions use the saved monitor token when configured. Preview redaction masks sensitive fields, and reported error messages redact credentials.
  • The dashboard server uses four workers by default on supported Unix systems so an open event stream does not block other requests. Configure this with --workers or CACHEER_MONITOR_WORKERS; Windows uses one worker.
  • Read endpoints handle malformed telemetry without blanking the whole response, and cross-origin access is opt-in.

Install or upgrade

Requires PHP 8.3+ and CacheerPHP 6. Monitor 2 replaces the v5 integration with CacheerPHP 6's typed telemetry; applications staying on CacheerPHP 5 should keep their compatible Monitor 1 release.

composer require silviooosilva/cacheer-php:"^6.0" cacheerphp/monitor:"^2.0"
vendor/bin/cacheer-monitor doctor
vendor/bin/cacheer-monitor serve --port=9966

Open http://127.0.0.1:9966 and generate cache activity in your application. Set CACHEER_MONITOR_EVENTS in the application's environment so the application and dashboard use the same events file.

Value previews and recorded data

Value capture is off by default. Enable CACHEER_MONITOR_CAPTURE_VALUES=true in the application before loading Composer's autoloader to record redacted previews. Live previews also require matching backend settings and the default storage pipeline and key encoder. Process-local ArrayStore values and custom, compressed, or encrypted pipelines require captured previews.

CacheerPHP 6's current typed events do not include separate namespace or TTL fields. Monitor shows missing metadata as unavailable. Latency describes recorded cache operations; it does not measure application requests or loader execution. Health rules run in the open dashboard, without a background notification service.

Documentation and configuration · README

Full changelog: v1.1.0…2.x

v1.1.0

Choose a tag to compare

@silviooosilva silviooosilva released this 20 Apr 01:46
8ba707f

What's Changed

  • Feat/key inspector time range filter ttl distribution hit rate alerts export and value capture by @silviooosilva in #7

Full Changelog: v1.0.5...v1.1.0

v1.0.5

Choose a tag to compare

@silviooosilva silviooosilva released this 03 Apr 20:57
7ff6bd2

What's Changed

  • Fix: monitor event path resolution to use project root by @silviooosilva in #6

Full Changelog: v1.0.4...v1.0.5

v1.0.4

Choose a tag to compare

@silviooosilva silviooosilva released this 03 Apr 13:27
3f18789

What's Changed

  • fix: correct autoloader resolution for real Composer installs and symlinked path repos by @silviooosilva in #5

Full Changelog: v1.0.3...v1.0.4

v1.0.3

Choose a tag to compare

@silviooosilva silviooosilva released this 03 Apr 13:18
df278bc

What's Changed

  • fix: resolve package root from class location instead of project root by @silviooosilva in #4

Full Changelog: v1.0.2...v1.0.3

v1.0.2

Choose a tag to compare

@silviooosilva silviooosilva released this 03 Apr 13:12
3749fa8

What's Changed

  • fix: resolve package root from class location instead of project root by @silviooosilva in #3

Full Changelog: v1.0.1...v1.0.2

v1.0.1

Choose a tag to compare

@silviooosilva silviooosilva released this 03 Apr 12:23
4e1dc78

What's Changed

  • fix: resolve autoloader and project root correctly when installed as dependency by @silviooosilva in #2

Full Changelog: v1.0.0...v1.0.1

v1.0.0

Choose a tag to compare

@silviooosilva silviooosilva released this 03 Apr 04:56
2233cd1