AI Cache Optimizer

Pro

Maximize cache efficiency and reduce origin load by automatically adjusting TTL based on request frequency and data mutation patterns.

How Cache Optimization Works

Manually configuring static cache rules is often inefficient. Underestimating TTL results in redundant misses and high origin workload. Overestimating TTL risks serving stale content to users.

AI Cache Optimizer monitors cache status, request velocity, cache invalidations, and origin response update frequencies. It runs continuous simulations to adjust TTLs dynamically for individual resource paths, ensuring high hit-rates for hot data while purging or skipping caching for cold or frequently changing records.

Dashboard Setup & Configuration

You can configure the AI Cache Optimizer directly inside the EdgeWrap Dashboard:

  1. Navigate to your project in the dashboard at https://app.edgewrap.pro.
  2. Go to the Performance page and select the Edge Caching tab.
  3. Under cache settings, toggle the AI Cache Optimizer switch to Enabled.
  4. Click Save Settings.

API Configuration

Alternatively, you can activate the AI Cache Optimizer programmatically:

Activate cache optimizer via API
curl -X PATCH https://server.edgewrap.pro/v1/projects/prj_01jxyz/cache/config \
  -H "Authorization: Bearer <your_session_token>" \
  -H "Content-Type: application/json" \
  -d '{ "aiTtlOptimizerEnabled": true }'
Tip: When enabled, you will see a green AI Optimized badge next to dynamic cache keys in your analytics logs indicating that TTL was managed by the ML model.