You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The approach is appropriate: directly document the new Selenium Manager behavior (automatic cache pruning) where caching is explained, and mirror it across localized docs to keep user guidance consistent.
Files changed (4) +9 / -1
Documentation (4) +9 / -1
selenium_manager.en.mdAdd documentation for automatic cache pruning and 'last_used' tracking+2/-0
Add documentation for automatic cache pruning and 'last_used' tracking
• Adds a new paragraph explaining that Selenium Manager automatically prunes old cache entries. Documents updating 'cached_assets.last_used' in 'se-metadata.json' on cache usage and removing cache directories unused for over 30 days.
selenium_manager.zh-cn.mdAdd Chinese description of automatic cache pruning behavior+3/-1
Add Chinese description of automatic cache pruning behavior
• Adds a Chinese paragraph describing Selenium Manager’s automatic cache pruning. Also adjusts minor punctuation/formatting around the TTL example before introducing the new content.
The new cache-pruning paragraph says se-metadata.json has a cached_assets section with
last_used timestamps, but earlier in the same section the metadata file is described only as
containing discovered versions and TTL. This inconsistency makes it unclear to readers what
se-metadata.json now contains and why it changes.
+To bound the cache size without requiring manual intervention, Selenium Manager automatically prunes old cache entries. Every time a driver or browser is resolved from the cache, a `last_used` Unix timestamp is updated in a dedicated `cached_assets` section within the metadata file (`se-metadata.json`). On each execution, Selenium Manager automatically removes driver or browser version directories from the cache that have not been used in over 30 days.
Evidence
In each file, the bullet defining se-metadata.json mentions only discovered versions and TTL,
while the newly added paragraph states the same file also contains a cached_assets section with
last_used timestamps for pruning—creating an internal inconsistency within the caching section.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The caching section introduces new metadata content (`cached_assets` + `last_used`) used for pruning, but the earlier bullet that defines `se-metadata.json` doesn’t mention this new structure. Update the metadata-file bullet so it accurately reflects both TTL/version discovery data and the cache-pruning bookkeeping.
## Issue Context
This PR adds pruning documentation in multiple language copies, so the earlier `se-metadata.json` description should be updated in each touched file to avoid internal doc inconsistency.
## Fix Focus Areas
- website_and_docs/content/documentation/selenium_manager.en.md[158-170]
- website_and_docs/content/documentation/selenium_manager.ja.md[158-170]
- website_and_docs/content/documentation/selenium_manager.pt-br.md[158-170]
- website_and_docs/content/documentation/selenium_manager.zh-cn.md[235-263]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR updated the SM to explain that now cache is pruned automatically.
Motivation and Context
Doc update due to a recent change in Selenium Manager:
SeleniumHQ/selenium#17585
Types of changes
Checklist