Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Project U-232 (http://www.bvlist.com/forumdisplay.php?f=80)
-   -   Memcached, Redis or None (http://www.bvlist.com/showthread.php?t=12254)

iseeyoucopy 19th April 2020 17:15

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

:friend::ok:

rio 19th April 2020 17:33

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 .

darkalchemy 19th April 2020 17:51

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.

HDVinnie 19th April 2020 19:22

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.

Thor 20th April 2020 08:36

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.

Krypto 20th April 2020 09:02

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.

darkalchemy 20th April 2020 09:08

Quote:

Originally Posted by Krypto (Post 54755)
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

mogo 9th December 2020 23:41

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

iseeyoucopy 10th December 2020 00:04

Quote:

Originally Posted by mogo (Post 55130)
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

mogo 10th December 2020 08:29

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 !


All times are GMT +2. The time now is 19:51.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.