B S W A G I C
Documentation

Cache Management

Manage cached data for performance and accuracy. Clear specific caches to resolve issues or refresh data rendering.

Cache Management

Tenant Cache Status Overview

  • Tenant Cache Status Overview : Know your cache state
    • Cache Driver : Backend used (file, redis, etc.)
    • Total Size : Overall cache footprint
    • Hit Rate : Successful read percentage (e.g., 98.68%)
    • Last Cleared : When the cache was last cleared
    • Total Keys : Number of cached items
    • Cache Tags : Whether tag-based invalidation is supported
    • Cache Health : Overall status (Excellent, Good, etc.)
    • Isolation : Each tenant cache is isolated from others

Cache Management Tools

  • Cache Management Tools (1) : Framework / Bootstrap / Temp
    • Clear Framework Cache : Clears Laravel internal cache after code/package changes
    • Clear Bootstrap Cache : Removes compiled classes in bootstrap/cache
    • Clear Temporary Files : Deletes temporary cache files to free storage

More Cache Tools

  • Cache Management Tools (2) : Views / Config / Routes / Logs
    • Clear Compiled Views : Forces recompilation after .blade.php changes
    • Clear Config Cache : Regenerate config cache after .env or config edits
    • Clear Route Cache : Refresh route definitions after route changes
    • Clear System Log Files : Delete old logs to free disk and improve I/O
    • Enable WhatsApp Log : Toggle WhatsApp-specific logging for debugging

How to Use These Tools

  • How to Use These Tools : Steps
    • Navigate : System Settings → Cache Management
    • Review : Check tenant cache status metrics
    • Run : Click Run Tool next to the action you want
    • Note : Avoid clearing config/routes during peak production unless necessary

Best Practices for Cache Management

  • Best Practices for Cache Management : Recommendations
    • Config : Run Clear Config Cache after .env/config changes
    • Views : Clear Compiled Views after UI updates
    • Logs : Regularly clear old logs if not auto-rotated
    • Caution : Avoid running all tools at once unless performing a deep clean