Download the PHP package wolfco/craft-cache-cow without Composer

On this page you can find all versions of the php package wolfco/craft-cache-cow. 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 craft-cache-cow

Cache Cow

This plugin adds a "Warm Cache" button under Utilities > Cache Cow on your Craft CMS control panel. Click it to start the cache warming process on all selected sites.

Cache Cow will look for your sitemap at {webroot}/sitemap.xml by default, but you can set the path to your own sitemap in plugin settings. Or you can have the plugin read this value from an environment variable, depending on your needs. Multiple sites are supported. You can enter additional URLs for cache warming in plugin settings (Settings > Plugins > Cache Cow > Settings).

If no URLs are found for warming (i.e. no sitemap exists at the configured path and no additional URLs have been entered), "Warm Cache" button will be disabled and you'll see an error.

You can also do cache warming via console command

By default it fetches all URLs from all configured sitemaps and any additional URLs added in Settings. You can target one or a few site handles by passing them in as a comma-separated list

Use handle custom to target additional URLs added in Settings.

Requirements

This plugin requires Craft CMS 4.0.0 or later, and PHP 8.2 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Cache Cow”. Then press “Install”.

With Composer

Open your terminal and run the following commands:

Run on a schedule using Cron Job (Linux/macOS)

The Cache Cow plugin provides a command to warm the cache: ./craft cache-cow/cache/warm. You can set this command to run on a regular schedule using a cron job.

To run the cache warming command automatically on a regular schedule, follow these steps:

Step 1: Open the Crontab Editor

Open a terminal and edit the crontab for the user that runs your web server (usually www-data or a specific user on your server):

Step 2: Add the Cron Job

Add the following line to the crontab file to run the cache warming command. For example, to run the command every hour:

Example Cron Job for Daily Execution at Midnight To run the cache warming daily at midnight, use this cron job:

[!NOTE]
Steps will vary in a Windows environment


All versions of craft-cache-cow with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
craftcms/cms Version ^4.0.0 || ^5.0.0
vipnytt/sitemapparser Version ^1.3
caseyamcl/guzzle_retry_middleware Version ^2.10.0
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 wolfco/craft-cache-cow contains the following files

Loading the files please wait ....