Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Grav updates and pre cache challenge

Started by Japhy 7 years ago · 2 replies · 665 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 jeremycherfas, 1 week ago
5 195 3 hours ago
General · by lynbor, 6 days ago
2 129 3 days ago
General · by Old Man Umby, 1 week ago
1 103 1 week ago
General · by Sebastian, 2 weeks ago
1 128 2 weeks ago
General · by Andy Miller, 3 weeks ago
0 251 3 weeks ago