PHP code example of pollora / object-cache

1. Go to this page and download the library: Download pollora/object-cache 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/ */

    

pollora / object-cache example snippets


define('WP_OBJECT_CACHE_CONFIG', [
    'redis' => ['host' => '127.0.0.1', 'port' => 6379, 'database' => 5],
    'prefetch' => ['enabled' => true, 'exclude_groups' => ['userlogins', 'wc_session_id', 'wc_cache_*']],
]);