diff --git a/docs/infrastructure_and_maintenance/cache/persistence_cache.md b/docs/infrastructure_and_maintenance/cache/persistence_cache.md index ece1462733..dedd4b3726 100644 --- a/docs/infrastructure_and_maintenance/cache/persistence_cache.md +++ b/docs/infrastructure_and_maintenance/cache/persistence_cache.md @@ -278,6 +278,20 @@ For more info on usage, see [Symfony Cache's documentation]([[= symfony_doc =]]/ ### Clearing persistence cache +!!! 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. + + You must always clear the persistence cache by running: + + ```bash + php bin/console cache:pool:clear [cache-pool] + ``` + + The default cache pool is named `cache.tagaware.filesystem`. + The default cache pool when running Redis or Valkey is named `cache.redis`. + If you have customized the persistence cache configuration, the name of your cache pool might be different. + Persistence cache prefixes it's cache using "ibx-". Clearing persistence cache can thus be done in the following ways: ``` php diff --git a/docs/snippets/page_block_cache_clear.md b/docs/snippets/page_block_cache_clear.md index 9c833cd213..30ee73bb94 100644 --- a/docs/snippets/page_block_cache_clear.md +++ b/docs/snippets/page_block_cache_clear.md @@ -2,9 +2,9 @@ Persistence cache must be cleared after any modifications have been made to the block config in Page Builder, such as adding, removing or altering the page blocks, block attributes, validators or views configuration. - 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. + The default cache pool is named `cache.tagaware.filesystem`. + The default cache pool when running Redis or Valkey is named `cache.redis`. If you have customized the [persistence cache configuration](https://doc.ibexa.co/en/latest/infrastructure_and_maintenance/cache/persistence_cache/#what-is-cached), the name of your cache pool might be different. In prod mode, you also need to clear the symfony cache by running `./bin/console c:c`. diff --git a/docs/update_and_migration/from_5.0/update_from_5.0.md b/docs/update_and_migration/from_5.0/update_from_5.0.md index e44c1b2c55..97139d20d3 100644 --- a/docs/update_and_migration/from_5.0/update_from_5.0.md +++ b/docs/update_and_migration/from_5.0/update_from_5.0.md @@ -363,16 +363,33 @@ Update Symfony constraints in `composer.json` before updating the packages. For more details about the new version, see the official Symfony [upgrade instructions](https://github.com/symfony/symfony/blob/7.4/UPGRADE-7.4.md) and [blog posts introducing this release](https://symfony.com/blog/category/living-on-the-edge/8.0-7.4). Key changes include: - - Array-based PHP configuration format - - As part of the [array-based PHP configuration format](https://symfony.com/blog/new-in-symfony-7-4-better-php-configuration), a `config/reference.php` file will be created. - You should commit this file to the repository. - Independent application cache directory Symfony 7.4 introduces a new [share directory](https://symfony.com/blog/new-in-symfony-7-4-share-directory), dedicated for storing application cache on the file system. If you decide to configure it (for example, by setting the `APP_SHARE_DIR` environment variable), review your existing scripts for explicit `var/cache` usage (for example, `rm -rf var/cache`) and decide whether to include `var/share` in the script. + !!! caution "Always clear the persistence cache with `cache:pool:clear` command" + + Starting with Symfony 7.4, running `php bin/console cache:clear` doesn't clear the [[= product_name =]] persistence cache, even when using a filesystem-based cache pool. + + To clear the persistence cache, for example after adding a [custom Page Builder block](create_custom_page_block.md), you must always run: + + ```bash + php bin/console cache:pool:clear [cache-pool] + ``` + + The default cache pool is named `cache.tagaware.filesystem`. + The default cache pool when running Redis or Valkey is named `cache.redis`. + If you have customized the persistence cache configuration, the name of your cache pool might be different. + + For more information about persistence cache, see [Persistence cache](persistence_cache.md). + + - Array-based PHP configuration format + + As part of the [array-based PHP configuration format](https://symfony.com/blog/new-in-symfony-7-4-better-php-configuration), a `config/reference.php` file will be created. + You should commit this file to the repository. + 4. Update Ibexa packages by running: === "[[= product_name_headless =]]"