Download the PHP package bigyouth/page-cache-bundle without Composer

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

Big Youth Page Cache Bundle

Maintainability Issues Downloads Release
Maintainability Issues Downloads Release

What is it ?

This bundle provides a simple page caching solution working as an in-app reverse proxy.

Requirements

Installation

Download the bundle

Download composer at https://getcomposer.org/download/

Register the bundle

Enable the bundle by adding it to the bundles array of the registerBundles method in your project's app/AppKernel.php file :

Configuration

Here is the default bundle configuration :

enabled

Set to true to enable the bundle.

ttl

Cache lifetime. This value varies by +5%/-5% to avoid multiple caches to expire at the same time.

type

Two value can be set for this parameter : filesystem and redis.

If you use filesystem, the cache will be written in the cache folder : var/cache/by_cache.

exclude

This parameter allows you to define url schemes that will be excluded from the page caching.

ex :

Every url that contains one of the terms above will not be processed by the BigyouthPageCacheBundle.

redis_host

Redis host. This parameter is only used when the type parameter is set to redis.

redis_port

Redis port. This parameter is only used when the type parameter is set to redis.

Usage

Caching

To use the BigyouthPageCacheBundle, your controller must extend the PageCacheController.php class and use the render function :

The PageCacheController rewrites the render function to manage and render cache data. All of your controller actions that use the render function will be cached.

Cache invalidation

The BigyouthPageCacheBundle uses cache tags to identify your cache data. The tags are defined by the url scheme of the cached page.

For example, the page behind /products/list/my-product will be tagged with products, list and my-product.

Therefore you can invalidate a product page by doing the following in your controller :

or if you want to invalidate all product pages :

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.


All versions of page-cache-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^5.3.9|^7.0
symfony/cache Version ^3.1
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 bigyouth/page-cache-bundle contains the following files

Loading the files please wait ....