vuejs / vuejs/core

KeepAlive provide function to delete cache

Open
#6,038 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:sparkles: feature request scope: keep-alive
Dominant language
TypeScript
Stars
54.4k
Forks
9.2k
Avg merge
1d 5h
Merged PRs (30d)
140

Description

What problem does this feature solve?

We can open multiple tabs. The components corresponding to the tabs use the keepalive cache. We need to destroy the keepalive cache when closing the tabs to release the cache. We also know KeepAlive max property but that can't delete specified cache. hope expose keys and cache property in production

What does the proposed API look like?

hope expose keys and cache property in production or provide function to delete cache by key

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the KeepAlive implementation and how it tracks cached entries and keys. Clarify whether the public API should expose cache state or provide deletion by key, then verify that a selected tab's cache can be removed without affecting other cached entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.