Download the PHP package stuartcusackie/statamic-cache-requester without Composer

On this page you can find all versions of the php package stuartcusackie/statamic-cache-requester. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statamic-cache-requester

Statamic Cache Requester

Artisan commands that queue up entry and glide urls for retrieval, which engages the caches and makes first time loads much quicker. Note that this package provides no benefict to Statamic applications that save cached images, i.e. cache => true.

This package can do a few things:

  1. Queue up all entry urls for retrieval which automatically engages the static cache, making first time loads quicker. UPDATE: Statamic actually has a built in function for this which should be preferable - static:warm
  2. Search for all image and picture sources within your entries and queue them up for a separate retrieval to initiate Glide generation. This means that all images and responsive variants will be pre-generated for your first visitor. This is particularly useful when you have lots of responsive image variants or if you are using Spatie's Statamic Responsive Images package. It can help to avoid server crashes for image heavy websites where Glide has a lot of processing to perform.
  3. Listens for EntrySaved events and automatically queues the entry's url for image requests.

CAUTION: Glide image manipulation can take a lot of work, especially when using responsive image variants and jpeg fallbacks. For example, a site using Spatie's responsive images addon could have 10 sizes and 2 formats per image. If this site has 1000 images then 20,000 variants will need to be manipulated by Glide. Keep an eye on your CPU usage, especially if using a hosting server that limits CPU (e.g. AWS-EC2).

Installation

Check the config file for special features such as queue configuration and lightbox image request generation.

Commands

This one basically does the same as php please static:warm. If you are using Static caching then it's a good idea to add either one of these commands to your deploy script (e.g. Forge). Deployments clear the static cache so this will rebuild it for all entries afterwards.

This one queues up jobs to visit every entry url and scan them for image urls, which will also then be queued as jobs for visiting. This process prepares all of your images in advance, but it can take a long time to run. You will usually only run this command once on initial deployment of the site, or after any major restructuring of asset filenames and folders. I do not recommend adding this to your deployment script as images rarely change.

Clears the configured queue. Be careful if using the default queue or a shared queue as all jobs will be removed.

Queues

This package utilises a Redis queue called cacherequester. You can configure the package to use whatever queue and connection that you prefer but it's probably best not to use a shared queue or the default queue.

The queue can be ran manually with this command:

php artisan queue:work redis --queue=cacherequester

I recommend using a Laravel Forge worker, or something similar, as workers are prone to exit prematurely when using the command line.

Todo


All versions of statamic-cache-requester with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^8.0 || ^9.0 || ^10.0
statamic/cms Version ^3.0|^4.0|^5.0
simplehtmldom/simplehtmldom Version ^2.0@RC
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package stuartcusackie/statamic-cache-requester contains the following files

Loading the files please wait ....