Closed
Bug 564803
Opened 16 years ago
Closed 2 years ago
Directory needs better caching with per-plugin invalidation
Categories
(Websites :: plugins.mozilla.org, defect)
Websites
plugins.mozilla.org
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: lorchard, Unassigned)
References
Details
Currently, the directory caches all API search results for up to an hour.
A better approach would be to cache all results indefinitely, but invalidate stale cached data if it contains a plugin that's been updated since the data was cached.
Here's a possible approach:
* Maintain last-modified by PFS ID in memcache, updated whenever a plugin's metadata or any releases are modified.
* Maintain last-modified for each cached API result.
* When an API search results in a cache hit, iterate through all the PFS IDs included in the result.
* If any of the PFS ID last-modified timestamps are newer than the overall cache hit timestamp, discard the cached result and perform a new lookup.
Plugins are no longer supported
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•