diff --git a/README.md b/README.md index 7a5eaf8..a383144 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,11 @@ This Statamic utility searches images and picture sources in your Statamic Entries and adds each url to a Redis queue. The queue can then be processed to retrieve each url and initiate Glide generation. -The purpose of this package is to pre-generate all website images, and alleviate some of the pressure that image-heavy websites put on the server. You will usually only run these commands once on initial deployment of the site, or after any major restructuring of asset filenames and folders. +The purpose of this package is to pre-generate all website images, and alleviate some of the pressure that image-heavy websites put on the server. This is particularly useful when you have lots of responsive image variants or if you are using Spatie's Statamic Responsive Images package. + +You will usually only run these commands once on initial deployment of the site, or after any major restructuring of asset filenames and folders. + +The package also listens for EntrySaved events and automatically queues the entry url for processing. ## Installation @@ -24,7 +28,7 @@ This package utilises a Redis queue called **gliderequester**. You must have Red ## Usage -This package provides an artisan command that be used like so +A control panel utility is provided for easy usage. An artisan command is also provided and can be used like so: `php artisan glide:request` diff --git a/config/statamic-glide-requester.php b/config/statamic-glide-requester.php index a773cb9..4cbd42d 100644 --- a/config/statamic-glide-requester.php +++ b/config/statamic-glide-requester.php @@ -30,7 +30,7 @@ | size for a responsive image, in which case the values below might be | | 'post_data_attributes' => [ - | 'data-img-id', + | 'data-asset-id', | ], | | 'asset_view_path' => '/lightbox-image-asset' diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index 23f3252..b6816b7 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -1,5 +1,5 @@ @extends('statamic::layout') -@section('title', __('Rebuild Search')) +@section('title', __('Glide Requester')) @section('content') @@ -15,8 +15,8 @@
Click the button to run the artisan command and it will search for all pictures and image elements in your entries and assets and queue them up for retrieval. This should greatly reduce initial page load times when lots of new images have been added.
-Don't forget to set up your config file and make sure your redis worker is running on the gliderequester queue.
+Click the button to queue all entries for image processing. You should only do this when lots of new images are added to multiple entries.
+This action will clear the current queue. Don't forget to set up your config file and make sure your redis worker is running on the gliderequester queue.