| @@ -583,9 +583,9 @@ | ||
| 583 | 583 | if (count($existingMetrics) > 1000) { |
| 584 | 584 | $existingMetrics = array_slice($existingMetrics, -1000); |
| 585 | 585 | } |
| 586 | 586 | |
| 587 | - update_option('yatra_cache_metrics', $existingMetrics); | |
| 587 | + update_option('yatra_cache_metrics', $existingMetrics, false); // autoload=false: metrics, read on demand | |
| 588 | 588 | |
| 589 | 589 | } catch (\Exception $e) { |
| 590 | 590 | // Don't let metrics storage failures break the main functionality |
| 591 | 591 | Logger::debug("Failed to store cache metrics", [ |