Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Project U-232
Reply
  #1  
Old 19th April 2020, 17:15
iseeyoucopy's Avatar
iseeyoucopy iseeyoucopy is offline
VIP
 
Join Date: Jan 2011
P2P
Posts: 17
Thumbs up Memcached, Redis or None
I've started to update the code with redis which is gonna take a while,but now I'm asking you should we seep Memcache or no? Should I continue to edit files for redis or no? Should I remove memcache completly from source?

I know both of them are good for faster browsing, reduces page load time.

Now I want your opinions... what is the best option?

Thank You

Reply With Quote
  #2  
Old 19th April 2020, 17:33
rio's Avatar
rio rio is offline
Senior Member
 
Join Date: May 2019
P2P
Posts: 45
Default
Memcached is still a very good option the difference between memcached and redis is not going to be much that said if you need something that redis has memcached does not then you probably should you it if not then it a waste of time .
__________________
Live Free... Share Free...
Reply With Quote
  #3  
Old 19th April 2020, 17:51
darkalchemy's Avatar
darkalchemy darkalchemy is offline
Super Moderator
 
Join Date: Dec 2017
United States
Posts: 69
Default
Why not use class a like https://github.com/matthiasmullie/scrapbook and let the user decide between redis, memcached ann apcu?

Easier than recreating everything.
__________________
I do custom coding, source installs, mods, server setup and/or config, etc. Feel free to pitch me your needs and your offer.
Reply With Quote
  #4  
Old 19th April 2020, 19:22
HDVinnie's Avatar
HDVinnie HDVinnie is offline
BluCrew
 
Join Date: Dec 2014
P2P
Posts: 132
Default
You can view benchmarks and perform them yourself to see redis is the fastest.

darkalchemy has already done so much to u-232 (pu-239). you guys should just work together.
__________________
Founder Of UNIT3D
Reply With Quote
  #5  
Old 20th April 2020, 08:36
Thor's Avatar
Thor Thor is offline
Administrator
 
Join Date: Jan 2017
United Kingdom
Posts: 29
Default
It would be nice if site owners could choose from a list which type of caching they'd like to use, I'm sure that it could help attract more to use the source.


Some may choose to host on a shared server to begin with to test the waters and we know that not not all hosting would have x,y,z extensions installed that would be needed to install and run the code, not to mention that some may wish to have a working copy on their localhost.
Reply With Quote
  #6  
Old 20th April 2020, 09:02
Krypto's Avatar
Krypto Krypto is offline
Retired from BVList
 
Join Date: Jan 2008
P2P
Posts: 512
Default
Some time ago now FreeTSP was looking in to using Redis but unfortunately only a few files were ever converted but the one's that were worked quite well.


I agree it'd be good to give Site Owners multiple choices on which to use, though it wouldn't be an easy task.
__________________
As an Admin I cannot Demote myself so, regardless of what my Userclass says, as of now I'm no longer a Member of BVList.

This Site's Reputation has been Destroyed beyond repair by certain individuals and, like recent members before me
I no longer wish to be associated with these childish tit-for-tat Posts
Reply With Quote
  #7  
Old 20th April 2020, 09:08
darkalchemy's Avatar
darkalchemy darkalchemy is offline
Super Moderator
 
Join Date: Dec 2017
United States
Posts: 69
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
__________________
I do custom coding, source installs, mods, server setup and/or config, etc. Feel free to pitch me your needs and your offer.

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 11:59. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2020, vBulletin Solutions Inc.