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

Generate / precache images

Started by Muut Archive 9 years ago · 5 replies · 594 views
9 years ago

Hey guys,

is it somehow possible to generate or precache all images of my site, after clearing the cache without open each page one by one?

9 years ago

Thanks for the quick reply. :) I already installed the plugin. But it seems like it doesn't process images. If you open a page for the first time, it still takes a while to generate the images. I can't see any improvements for images by using this plugin?

9 years ago

If images are used in content, it should definitely handle those too. It's basically looping through every page Grav knows about and calling the content() method on it automatically for you. You can also try the CLI command which actually makes and HTTP call to your site and 'crawls' it, to ensure each page is hit and therefore cached.

9 years ago

Alright thanks! Looks like it just took a while. Seems to work now!
Can you tell me the cli command, you were talking about?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1330 9 years ago
Archive · by Muut Archive, 9 years ago
2 922 9 years ago
Archive · by Muut Archive, 9 years ago
2 4051 9 years ago
Archive · by Muut Archive, 9 years ago
1 2930 9 years ago
Archive · by Muut Archive, 9 years ago
3 1108 9 years ago