Skip to content

Commit 22cf579

Browse files
authored
Added mention about the new mount (#3293)
1 parent 7dc24d6 commit 22cf579

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

docs/update_and_migration/from_5.0/update_from_5.0.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,23 @@ Update Symfony constraints in `composer.json` before updating the packages.
364364
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.
365365
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.
366366

367+
If you use [[= product_name_cloud =]], add a mount for the `var/share` directory to your `.platform.app.yaml` file, next to the existing `var/cache` and `var/log` mounts:
368+
369+
```yaml hl_lines="5-7"
370+
mounts:
371+
'var/cache':
372+
source: local
373+
source_path: cache
374+
'var/share':
375+
source: local
376+
source_path: share
377+
'var/log':
378+
source: local
379+
source_path: log
380+
```
381+
382+
Without this mount, the `var/share` directory is read-only and all writes to the `cache.app` cache pool fail.
383+
367384
!!! caution "Always clear the persistence cache with `cache:pool:clear` command"
368385

369386
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.

0 commit comments

Comments
 (0)