You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/snippets/page_block_cache_clear.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
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.
4
4
5
-
To clear the persistence cache run `./bin/console cache:pool:clear [cache-pool]` command.
6
-
The default cache-pool is named `cache.tagaware.filesystem`.
7
-
The default cache-pool when running Redis or Valkey is named `cache.redis`.
5
+
To clear the persistence cache, run `php bin/console cache:pool:clear <cache-pool>` command.
6
+
The default cachepool is named `cache.tagaware.filesystem`.
7
+
The default cachepool when running Redis or Valkey is named `cache.redis`.
8
8
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.
9
9
10
10
In prod mode, you also need to clear the symfony cache by running `./bin/console c:c`.
This version of [[= product_name =]] requires [Symfony 7.4](https://symfony.com/releases/7.4).
339
+
Update Symfony constraints in `composer.json` before updating the packages.
340
+
341
+
1. In `composer.json`, update `extra.symfony.require` to allow installing a higher Symfony version:
342
+
343
+
```json
344
+
"extra": {
345
+
"symfony": {
346
+
"require": "7.4.*"
347
+
}
348
+
}
349
+
```
350
+
351
+
2. To allow installing Symfony 7.4, update the requirements for **all** `symfony` packages in `composer.json` as in the example below:
352
+
353
+
``` diff
354
+
- "symfony/<package>"": "7.3.*",
355
+
+ "symfony/<package>"": "7.4.*",
356
+
```
357
+
358
+
3. Review your code, configuration, and third-party bundles for Symfony 7.4 compatibility.
359
+
360
+
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).
361
+
Key changes include:
362
+
363
+
364
+
- Independent application cache directory
365
+
366
+
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.
367
+
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.
368
+
369
+
!!! caution "Always clear the persistence cache with `cache:pool:clear` command"
370
+
371
+
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.
372
+
373
+
To clear the persistence cache, for example after adding a [custom Page Builder block](create_custom_page_block.md), you must always run:
374
+
375
+
```bash
376
+
php bin/console cache:pool:clear <cache-pool>
377
+
```
378
+
379
+
The default cache pool is named `cache.tagaware.filesystem`.
380
+
The default cache pool when running Redis or Valkey is named `cache.redis`.
381
+
If you have customized the persistence cache configuration, the name of your cache pool might be different.
382
+
383
+
For more information about persistence cache, see [Persistence cache](persistence_cache.md).
384
+
385
+
- Array-based PHP configuration format
386
+
387
+
As part of the new [array-based PHP configuration format](https://symfony.com/blog/new-in-symfony-7-4-better-php-configuration), Symfony creates the `config/reference.php` file.
5. Manually restore the entry for `JMSTranslationBundle` in `config/bundles.php` to [its previous position](https://github.com/ibexa/commerce-skeleton/blob/v5.0.6/config/bundles.php#L14):
0 commit comments