Automattic / Automattic/jetpack
Boost: It's possible to create multiple cache files using a script
Open
[Boost Feature] Optimizations
[Boost Feature] Page Cache
[Experiment] AI labels added
[Feature Group] Other Infrastructure
[Plugin] Boost
[Pri] Normal
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
Discussed during the weekly meeting.
Since we're using GET parameters + cookies to determine if a URL is cached or not, it is possible to create multiple cache files of the same URL just by changing the value of a cookie.
This can be used to fill the cache directory with unnecessary files.
Contributor guide
Research direction
Start by tracing Boost's cache handling for GET parameters and cookies, then reproduce the issue by changing a cookie value for the same URL. Determine how those changes create separate cache files and verify that unnecessary variants no longer fill the cache directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100