PHP code example of marcoguidara / quick-laravel-responsecache

1. Go to this page and download the library: Download marcoguidara/quick-laravel-responsecache library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

marcoguidara / quick-laravel-responsecache example snippets


return [
    /*
     * Determine if the response cache should be enabled.
     */
    'enabled' => env('QUICK_RESPONSE_CACHE_ENABLED', true),

    /*
     * Default number of seconds responses must be cached.
     */
    'cache_lifetime_in_seconds' => env('QUICK_RESPONSE_CACHE_LIFETIME', 60 * 60 * 24 * 7),
];

QuickResponseCache::clear();

WIP
bash
php artisan vendor:publish --provider="MarcoGuidara\QuickResponseCache\QuickResponseCacheServiceProvider"
bash
php artisan responsecache:clear