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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Grav updates and pre cache challenge

Started by Japhy 7 years ago · 2 replies · 534 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 Jerry Hunt, 4 days ago
2 99 16 hours ago
General · by pamtbaau, 21 hours ago
1 63 21 hours ago
General · by Andy Miller, 1 day ago
0 48 1 day ago
General · by Marcel, 12 months ago
6 357 5 days ago
General · by Duc , 6 days ago
3 45 6 days ago