Download the PHP package framecreative/wp-rocket-preload-sitemap without Composer

On this page you can find all versions of the php package framecreative/wp-rocket-preload-sitemap. 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 wp-rocket-preload-sitemap

WP Rocket | Only Preload URLs in a Sitemap

Restricts WP Rocket's preload feature to the URLs found in a single sitemap. Any URL not present in the sitemap is excluded from preloading — it will still be cached normally when a visitor hits it, it just won't be warmed in advance.

Based on WP Rocket's official helper plugin samples, adapted for Frame Creative sites.

Requirements

Installation

Released on Packagist only, installed via Composer:

The package type is wordpress-plugin, so composer/installers will place it in wp-content/plugins/. Activate it from the WordPress admin as usual.

How the sitemap URL is chosen

The sitemap URL is resolved lazily (when WP Rocket's preload actually runs, not at plugin load), so it doesn't depend on plugin load order. Resolution order:

  1. WPR_HELPER_CUSTOM_SITEMAP_URL constant — if pre-defined, wins over everything.
  2. FC_SITEMAP_URL constant — define it in wp-config.php to point at any sitemap:

  3. Yoast SEO — if Yoast is active, its sitemap_index.xml URL is used automatically.
  4. Fallback{home_url}/sitemap_index.xml.

How it works

On activation

To make the sitemap change take effect immediately, activation will:

  1. Clear the cached sitemap URL list
  2. Truncate WP Rocket's preload table ({prefix}wpr_rocket_cache), if it exists
  3. Clear the WP Rocket cache for the domain
  4. Toggle the preload setting off and on to restart the preload

On deactivation

The cached sitemap URL list is cleared and the preload setting is toggled off and on again, so WP Rocket rebuilds its preload list without the sitemap restriction.

Both hooks only touch WP Rocket settings when WP Rocket is active, and never force-enable a preload that was switched off.

License

GPL-2.0-or-later


All versions of wp-rocket-preload-sitemap with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.0
composer/installers Version ^2.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 framecreative/wp-rocket-preload-sitemap contains the following files

Loading the files please wait ...