If your homepage navigation queries the same 20 languages on every single visit, cache it with Cache::remember()! Just remember to call Cache::forget('menu_languages') when an admin adds or edits a language.
ADVERTISEMENT
We use cookies to collect and analyse information on site performance and usage, and to enhance and customise content and advertisements. Learn more
Required for basic website functionality.
Help us understand how visitors interact with the site.
Used to show relevant ads and measure ad performance.