Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enikeishik/cachewholepage
CacheWholePage package for Laravel framework - allow to cache whole page output.
https://github.com/enikeishik/cachewholepage
cache caching laravel laravel-package package php php-library
Last synced: about 2 months ago
JSON representation
CacheWholePage package for Laravel framework - allow to cache whole page output.
- Host: GitHub
- URL: https://github.com/enikeishik/cachewholepage
- Owner: enikeishik
- License: gpl-3.0
- Created: 2021-01-28T11:52:48.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-16T06:42:01.000Z (about 3 years ago)
- Last Synced: 2024-04-24T17:09:01.360Z (9 months ago)
- Topics: cache, caching, laravel, laravel-package, package, php, php-library
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# CacheWholePage
Package for [Laravel framework](https://laravel.com/) -
allow to cache whole page output.## Requirements
* PHP >= 7.4
* Laravel >= 7.0## Install
Install (or update) package via [composer](http://getcomposer.org/):
```bash
composer require enikeishik/cachewholepage
```Make sure autoload will be changed:
```bash
composer dump-autoload
```Publish package via artisan:
```bash
php artisan vendor:publish --provider="Enikeishik\CacheWholePage\ServiceProvider"
```This command copy configuration file into corresponding project folder.
## After install
By default caching apply to all routes in `web` group. It can be changed in service provider.
Tune configuration parameter `CACHE_WP_TTL` in `env` file
(or `ttl` parameter in `cachewholepage.php` file in project configuration folder)
corresponding to your needs.Add first segment of path to `excludes` array in `cachewholepage.php` file
in project configuration folder to avoid caching.Cache and lock TTLs should be obviously more than the estimated page generation time.