@@ -351,7 +351,7 @@ public function test_flexible_method_works_with_optimization()
351351 };
352352
353353 // Laravel format: [freshTtl, staleTtl]
354- $ durations = [3600 , 7200 ]; // Fresh for 1 hour, stale for additional 2 hours
354+ $ durations = [3600 , 7200 ]; // Fresh for 1 hour, stale until 2 hours
355355
356356 // Test the flexible method with real SmartCache instance
357357 $ result = $ this ->smartCache ->flexible ($ key , $ durations , $ callback );
@@ -379,7 +379,7 @@ public function test_flexible_method_fresh_data_retrieval()
379379 return $ expectedValue . '- ' . $ callCount ;
380380 };
381381
382- // Fresh for 10 seconds, stale for additional 20 seconds
382+ // Fresh for 10 seconds, stale until 20 seconds
383383 $ durations = [10 , 20 ];
384384
385385 // First call should execute callback and cache result
@@ -403,7 +403,7 @@ public function test_flexible_method_stale_while_revalidate_behavior()
403403 return 'value- ' . $ callCount ;
404404 };
405405
406- // Fresh for 1 second, stale for additional 5 seconds
406+ // Fresh for 1 second, stale until 5 seconds
407407 $ durations = [1 , 5 ];
408408
409409 // Initial call
@@ -435,7 +435,7 @@ public function test_flexible_method_expired_data_regeneration()
435435 return 'value- ' . $ callCount ;
436436 };
437437
438- // Very short durations for testing: fresh for 1 second, stale for 1 additional second
438+ // Very short durations for testing: fresh for 1 second, stale until 1 second (no stale period)
439439 $ durations = [1 , 1 ];
440440
441441 // Initial call
@@ -513,7 +513,7 @@ public function test_flexible_method_with_optimization_integration()
513513 return $ largeValue ;
514514 };
515515
516- $ durations = [3600 , 7200 ]; // Fresh 1h, stale 2h
516+ $ durations = [3600 , 7200 ]; // Fresh 1h, stale until 2h
517517
518518 // Test with real SmartCache instance
519519 $ result = $ this ->smartCache ->flexible ($ key , $ durations , $ callback );
0 commit comments