Skip to content

Commit 9e0cf83

Browse files
committed
Add menu caching docs
1 parent c40188b commit 9e0cf83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ Menus support multiple types of links and can be easily styled with custom templ
325325
- **Conditional visibility** - Show/hide menu items without deleting them
326326
- **Icon support** - Optional icons for menu items (basic implementation currently)
327327
- **Dynamic labels** - Use model titles or custom labels for linked content
328+
- **Caching** - Menu's are cached for the best performance
328329

329330
<img src="documentation/screenshots/menu.png" alt="Menu builder" width="100%" />
330331

@@ -381,6 +382,8 @@ class Product extends Model implements HasMenuLabel
381382
**Tip:** If you are using the Flexible Content Blocks title trait in your model, you can implement `HasMenuLabel`
382383
easily with [`HasTitleMenuLabelTrait`](src/Models/Concerns/HasTitleMenuLabelTrait.php).
383384

385+
**Note:** The menu data is cached for better page load performance. The cache is cleared with model observers, when the menu is updated or deleted.
386+
384387
### Menu seeding
385388

386389
It makes a lot of sense to create most of the menu's in seeders, so they can be automatically synced over different environments.

0 commit comments

Comments
 (0)