View Single Post
  #7  
Old 20th April 2020, 09:08
darkalchemy darkalchemy is offline
Administrator
 
Join Date: Dec 2017
United States
Posts: 101
Default
Quote:
Originally Posted by Krypto View Post
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

Last edited by firefly007; 21st April 2020 at 11:38. Reason: Not wrapping code with the corresponding bbcode
Reply With Quote