Skip to content

Conversation

@1batu
Copy link
Member

@1batu 1batu commented Oct 13, 2025

Summary

  • replace raw SQL updates with a reusable persistor to safely increment model view counts
  • enhance the caching workflow with configurable TTL support and cached value awareness in viewCount()
  • refresh the configuration and README to document the new behaviour and options

Testing

  • php -l src/Support/ModelViewPersistor.php
  • php -l src/Traits/CountableView.php
  • php -l src/Console/Commands/FlushModelViewCounts.php
  • php -l src/Models/ModelView.php
  • php -l src/Events/ModelViewed.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants