Skip to content

Added more mentions about clearing persistence cache#3174

Open
mnocon wants to merge 2 commits into5.0from
var-share-doc
Open

Added more mentions about clearing persistence cache#3174
mnocon wants to merge 2 commits into5.0from
var-share-doc

Conversation

@mnocon
Copy link
Copy Markdown
Contributor

@mnocon mnocon commented May 5, 2026

As suggested by @marcin-kondera , the var/share change is a huge change that breaks all the habits Symfony developers have (namely, running rm -rf var/cache and being sure it clears all the caches).

This PR tries to make the description of the change more visible, hoping we save at least some people from debugging this problem.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

@mnocon mnocon requested a review from a team May 5, 2026 11:38
@ibexa-workflow-automation-1 ibexa-workflow-automation-1 Bot requested review from adriendupuis, dabrt and julitafalcondusza and removed request for a team May 5, 2026 11:38

!!! caution "Always clear the persistence with `cache:pool:clear` command"

Running `php bin/console cache:clear` doesn't clear the persistence cache, even when using a filesystem-based cache pool.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Running `php bin/console cache:clear` doesn't clear the persistence cache, even when using a filesystem-based cache pool.
Running `php bin/console cache:clear` doesn't clear the persistence cache, even when you use a filesystem-based cache pool.

To clear the persistence cache run `./bin/console cache:pool:clear [cache-pool]` command.
The default cache-pool is named `cache.tagaware.filesystem`.
The default cache-pool when running Redis or Valkey is named `cache.redis`.
To clear the persistence cache run `php bin/console cache:pool:clear [cache-pool]` command.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To clear the persistence cache run `php bin/console cache:pool:clear [cache-pool]` command.
To clear the persistence cache, run `php bin/console cache:pool:clear [cache-pool]` command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants