masaori335 opened a new pull request, #13061:
URL: https://github.com/apache/trafficserver/pull/13061

   Depends on #13060 cleanup change. This PR is going to be rebased when it's 
merged. Please look at the last commit.
   
   ----
   
   # Summary
   
   Prior to this change, when a cache object was served via the last_open_read 
hit path in `CacheVC::handleRead`, it was never promoted to the RAM cache. Only 
objects going through `handleReadDone` (disk reads) were eligible for RAM cache 
promotion. This meant that frequently-accessed objects could be repeatedly 
fetched from disk even when they should have been promoted to RAM cache.
                                     
   This change adds a RAM cache put call in the last_open_read hit path, using 
the same _ram_cache_cutoff_check logic that governs promotion in 
handleReadDone. The cutoff check helper was extracted in a prior cleanup commit 
to enable this reuse.
   
   # Changes:
   
   - Extract _ram_cache_cutoff_check() as a private method on CacheVC
   - In `CacheVC::handleRead`, after a last_open_read RAM hit, call 
`stripe->ram_cache->put()` if the object passes the cutoff check, with 
`http_copy_hdr` derived from handleReadDone behavior.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to