Quote:
Originally Posted by Krypto
I agree it'd be good to give Site Owners multiple choices on which to use, though it wouldn't be an easy task.
|
In U232, replacing memcached functions with similar functions using matthiasmullie/scrapbook only took a couple of hours. With that the user can choose between files, memcached, redis, apcu, couchbase, mysql, postgresql or memory.
change:
PHP Code:
if (($torrents = $mc1->get_value('torrent_details_' . $id)) === false) {
to:
PHP Code:
$torrents = $cache->get('torrent_details_' . $id);
if ($torrents === false || is_null($torrents)) {
Could probably do it without the null check, like:
PHP Code:
if (($torrents = $cache->get('torrent_details_' . $id)) === false) {
For me, in Pu-239, replacing the cache name and function names was very easy using PhpStorm or another editor.
Here you go, for those that want U-232 V5 with multiple cache options
https://github.com/darkalchemy/U-232-V5/commits/cache