Skip to content

dragosani24/laravel-caching-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Caching Proxy

A caching proxy server for Laravel applications.

Installation

composer require dragosani24/laravel-caching-proxy

Usage

Start the proxy server

php artisan caching-proxy --port 3000 --origin http://example.com

Use configuration values

php artisan caching-proxy --config

Clear cache

php artisan caching-proxy --clear-cache

Standalone executable

./vendor/bin/caching-proxy --port 3000 --origin http://example.com

Configuration

Publish the configuration file:

php artisan vendor:publish --provider="dragosani24\\CachingProxy\\CachingProxyServiceProvider" --tag="config"

Then edit config/caching-proxy.php:

return [
    'default_port' => env('CACHING_PROXY_PORT', 3000),
    'default_origin' => env('CACHING_PROXY_ORIGIN', 'http://localhost'),
    'cache_ttl' => env('CACHING_PROXY_TTL', 60), // in minutes
];

About

Laravel-based CLI tool that acts as a caching proxy server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages