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 · 605 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 days ago
2 84 2 days ago
General · by Andy Miller, 7 days ago
0 147 7 days ago
General · by Veehem, 1 week ago
0 146 1 week ago
General · by milkboy, 1 week ago
0 142 1 week ago
General · by ian russell, 2 weeks ago
2 226 2 weeks ago