Download the PHP package quintype/caching without Composer
On this page you can find all versions of the php package quintype/caching. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package caching
quintype-caching-php
A composer package for caching for all quintype PHP projects. All publisher websites should be cached to reduce load to the server.
Important : If any change is made to the package, do the following.
- Create a new release.
- Update the package in Packagist.
- To use the new version of the package in any project, change the version number in composer.json file and run
$ composer update
Instructions to include the package into a project.
In composer.json, require Caching package.
Install or update the composer packages.
In the Laravel config/app.php file, add aliases to the packages for convenience.
Include both Caching class in the necessary controllers.
Create a constructor function to initialize the Caching object and to set default caching parameters..
Call the function using the created object. Pass all necessary details that will be used for setting cache headers to the function as an associative array.
The argument is an associative array with following keys:
- publisherId
- cdnTTLs: Corresponds to Surrogate-Control values.
- max-age: This controls how long the page is considered fresh in the Database.
- stale-while-revalidate: During this period, the page is served from CDN, but updated in the background.
- stale-if-error: During this time, the page is served from CDN in case the backend server crashes for whatever reason.
- browserTTLs: Corresponds to Cache-Control values
- max-age
- locationId(not required for story page): home or section-id
- storyGroup(not required for story page): top or stack-id
- storiesToCache:
- Array of all collections under a key for each of them, if driven through collections.
- Array of all the stories that have to be cached, if driven through stories.
- storiesFrom(required for collection driven page): collection
All versions of caching with dependencies
PHP Build Version
Package Version
No informations.
The package quintype/caching contains the following files
Loading the files please wait ....