Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Grav updates and pre cache challenge

Started by Japhy 7 years ago · 2 replies · 627 views
7 years ago

I have a gallery with maybe 400 high res photos (and counting). I am using media boxes and a twig template -> /forum/plugins/will-grav-work-for-a-gallery-with-hundreds-of-images-t3687

It works absolutely wonderfully. I am very happy with this solution! There is only one (small) problem. Whenever I update Grav cms all my cache is being cleared. First time my gallery is being viewed after update it results in a time out. I already increased max_execution_time on the server but it's not a real solution. Is there a way to pre cache this somehow? I already tried the plugin, but either I don't know how it is supposed to work or it doesn't on my site. -> https://github.com/getgrav/grav-plugin-precache. Can anyone explain in layman's terms how this works?

Once the gallery has been cached it is unbelievably fast.

👍 1
7 years ago

I asked your question in the Discord chat and was hoping someone might log in here and answer 😕

Anyway, I'll pass on what was suggested. Go to command line at the root of your site's file system and type:

$ bin/plugin precache url <yoursite_url>

Hope I got that right and it helps :)

7 years ago

Thanks hughbris! I will try this.

Suggested topics

Topic Participants Replies Views Activity
General · by jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago