artesaos / seotools

SEO Tools for Laravel
MIT License
3.12k stars 506 forks source link

do this package can cache result #314

Closed vahidalvandi closed 8 months ago

vahidalvandi commented 1 year ago

hi i want to use {!! SEO::generate() !!} in head of layout file , but i have question Can this code cache the results?

almamund commented 1 year ago

I'm here for the same answer.

J-Brk commented 1 year ago

How much do you want to cache? Since this package's performance penalty is so insignificant; I don't think you will be able to gain much performance by caching it's output. Like most Laravel packages it doesn't have any additional caching functionalities implemented; however it is fully compatible with the Laravel view & config cache.

You can always wrap it in your own caching implementation however but I don't think this is worth it.