Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Project U-232
Reply
  #1  
Old 19th April 2020, 17:15
iseeyoucopy iseeyoucopy is offline
VIP
 
Join Date: Jan 2011
P2P
Posts: 28
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 rio is offline
Senior Member
 
Join Date: May 2019
P2P
Posts: 55
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 darkalchemy is offline
Administrator
 
Join Date: Dec 2017
United States
Posts: 101
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.
Reply With Quote
  #4  
Old 19th April 2020, 19:22
HDVinnie's Avatar
HDVinnie HDVinnie is offline
BluCrew
 
Join Date: Dec 2014
P2P
Posts: 140
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 Thor is offline
Administrator
 
Join Date: Jan 2017
United Kingdom
Posts: 33
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 Krypto is offline
Retired from BVList
 
Join Date: Jan 2008
P2P
Posts: 510
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.
Reply With Quote
  #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
  #8  
Old 9th December 2020, 23:41
mogo mogo is offline
Senior Member
 
Join Date: Jun 2020
P2P
Posts: 94
Default
When install u-232 v5 and go to the signup.php give me error:
Fatal error: Cache insert failed for key countries::arr -- 47 in /home/www/example.com/include/class/class_cache.php on line 72
When i'm wrong?
I installed this version https://github.com/iseeyoucopy/U-232-V5
Reply With Quote
  #9  
Old 10th December 2020, 00:04
iseeyoucopy iseeyoucopy is offline
VIP
 
Join Date: Jan 2011
P2P
Posts: 28
Default
Quote:
Originally Posted by mogo View Post
When install u-232 v5 and go to the signup.php give me error:
Fatal error: Cache insert failed for key countries::arr -- 47 in /home/www/example.com/include/class/class_cache.php on line 72
When i'm wrong?
I installed this version https://github.com/iseeyoucopy/U-232-V5
Some of the files didn't been updated
Reply With Quote
  #10  
Old 10th December 2020, 08:29
mogo mogo is offline
Senior Member
 
Join Date: Jun 2020
P2P
Posts: 94
Default
I signup with success SysOP account created, but when i login Login failed!
Error: Username or password entry incorrect
Have you forgotten your password? Recover your password !
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 20:53. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.