Download the PHP package zenstruck/cache-bundle without Composer
On this page you can find all versions of the php package zenstruck/cache-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zenstruck/cache-bundle
More information about zenstruck/cache-bundle
Files in zenstruck/cache-bundle
Package cache-bundle
Short Description Provides a httpcache warmup command for Symfony2
License MIT
Homepage http://zenstruck.com/project/ZenstruckCacheBundle
Informations about the package cache-bundle
ZenstruckCacheBundle
Provides a httpcache warmup command for Symfony2. The command simply executes a GET
request on a list of urls.
One or more url providers must be registered. This bundle requires an implementation of
php-http/httplug and
php-http/message-factory.
Installation
-
Add to your
composer.json
: - Register this bundle with Symfony2:
Configuration
An http_client
(class or service implementing Http\Client\HttpClient
) and message_factory
(class or service implementing Http\Message\MessageFactory
) must be configured.
HttpCache Warmup Command
Usage:
app/console zenstruck:http-cache:warmup
Sitemap Provider
This bundle comes with a URL provider that looks at a list of sitemaps to retrieve a list of urls. If a url is
given without the sitemap or sitemap index, the provider first looks for a {url}/sitemap_index.xml
to find a
set of sitemap files. If no index is found, it defaults to using {url}/sitemap.xml
.
- See http://www.sitemaps.org/ for information on how to create a sitemap.
- See DpnXmlSitemapBundle for creating a sitemap with Symfony2.
To enable the sitemap provider, configure it in your config.yml
:
Add a Custom URL Provider
-
Create a class that implements
Zenstruck\CacheBundle\Url\UrlProvider
: - Register the class as a service tagged with
zenstruck_cache.url_provider
:
Full Default Config
All versions of cache-bundle with dependencies
symfony/console Version ^2.5|^3.0
php-http/httplug Version ^1.0
php-http/message-factory Version ^1.0
php-http/client-implementation Version ^1.0