Version | API |
---|---|
7.3 |
20180731 |
7.4 |
20190902 |
8.0 |
20200930 |
8.1 |
20210902 |
8.2 |
20220829 |
8.3 |
20230831 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Time-to-live in seconds for cached requests. | |
*/ | |
const cacheTtl = 300; | |
/** | |
* List of request paths to cache. | |
*/ | |
const cachedPaths = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
var_dump('PhpRedis: '. phpversion('redis')); | |
$redis = new RedisCluster( | |
null, | |
[ | |
'tls://127.0.0.1:7001', | |
'tls://127.0.0.1:7002', | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ./wordpress | |
wget https://objectcache.pro/plugin/redis-cache-pro.zip?token=0000000000 | unzip | |
cp redis-cache-pro/stubs/mu-plugin.php wp-content/mu-plugins/redis-cache-pro.php | |
mv redis-cache-pro wp-content/mu-plugins | |
rm redis-cache-pro.zip | |
read -r -d '' WP_REDIS_CONFIG <<- EOM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function(key) { | |
var script = document.createElement('script'); | |
script.src = 'https://static.leaddyno.com/js'; | |
script.async = true; | |
script.onload = function () { | |
LeadDyno.key = key; | |
LeadDyno.recordVisit(); | |
LeadDyno.autoWatch(); | |
}; |
OlderNewer