CacheRoute

Speeds up your application by caching output associated with specific routes

Back to CacheRoute Support

Hessel
Hessel

Hi sir, thanks for this plug-in. My english is not so good, can you please tell me what I need to fill in to the "route pattern field" if I would like to add the homepage? is it the url:" /" or the page title "home"? thanks in advange!

dshoreman
dshoreman

I haven't used this plugin, but it looks like it uses standard Laravel Request calls, so it'll be matching against the slug. Use / unless your homepage slug is actually set to /home.

mnshankar
mnshankar

As @dshoreman mentioned, please use '/' and not the page title. It uses laravel's request::is() to match a route. Also, note that you can use "?debug" at the end of the url to insure that your page is in fact being cached.

Hessel
Hessel

Thanks for your reply, the url indeed is "/". strange thing is when I add this to the field with maximum minutes nothing happends. https://tools.pingdom.com stills says: "The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources"

and then all resources on the homepage> / are mentioned

Last updated

mnshankar
mnshankar

Do an artisan cache:clear after adding entries to the routing table. Thereafter, navigating to "/?debug" should display "cached" on the page.

1-5 of 5