Jump to content

Photo

Redis cache for socialengine


  • Please log in to reply
5 replies to this topic

#1 Kronos

Kronos

    Level 4

  • Members
  • Level
  • 24 points
  • 139 posts
    • Gender:Not Telling
    • Software:SE 4.8.x

Posted 01 April 2020 - 04:40 PM

Anyone using redis cache?

sudo apt-get update && sudo apt-get upgrade
sudo apt install redis-server
sudo apt install php-redis

add extension= redis.so to php.ini

 

But it's not showing on the backend of SE.


Edited by Kronos, 01 April 2020 - 04:46 PM.


#2 Les

Les

    Blue Team Lima 1

  • Moderators
  • Level
  • 5,165 points
  • 3,447 posts
    • Gender:Male
    • Location:Westland, Michigan U.S.A.
    • Software:SE 5.x


Users Awards

Posted 01 April 2020 - 06:21 PM

Anyone using redis cache?

sudo apt-get update && sudo apt-get upgrade
sudo apt install redis-server
sudo apt install php-redis

add extension= redis.so to php.ini

 

But it's not showing on the backend of SE.

You have to restart apache or nginx and the webserver. I would even restart bind.


:emo: Please don't forget to  27-AwardsImgIcon.png "LIKE" if you like this post or if it is helpful to you. This is a way to show gratitude for the help that you received. After all, the "LIKE" costs you nothing. Don't you agree? Also, any and all modules, plug-ins, themes, widgets, or DB entries that are shared or posted by me are for educational purposes. Please visit the developers websites and purchase legitimately, if you like them. Thanks, Les

socialengine-experts.png

 

 


#3 vladben

vladben

    Level 4

  • Members
  • Level
  • 56 points
  • 109 posts
    • Gender:Male
    • Location:Toronto
    • Software:SE 5.x

Posted 01 April 2020 - 07:31 PM

??

-bash: add: command not found
root@server1:~# sudo apt install php-redis
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php-redis
root@server1:~# add extension= redis.so to php.ini
-bash: add: command not found
root@server1:~#


#4 Kronos

Kronos

    Level 4

  • Members
  • Level
  • 24 points
  • 139 posts
    • Gender:Not Telling
    • Software:SE 4.8.x

Posted 01 April 2020 - 08:21 PM

In my case error was: redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory after starting redis server.

 

 

 

ANSWER:

Editing nano /etc/systemd/system/redis.service and adding this line below [Service]:

 

ExecStartPost=/bin/sh -c "echo $MAINPID > /var/run/redis/redis.pid"

 



#5 vladben

vladben

    Level 4

  • Members
  • Level
  • 56 points
  • 109 posts
    • Gender:Male
    • Location:Toronto
    • Software:SE 5.x

Posted 01 April 2020 - 10:39 PM

 
root@server1:~# sudo apt install php-redis
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php-redis
root@server1:


#6 acsindia

acsindia

    Level 1

  • Members
  • Level
  • 0 points
  • 11 posts

Posted 25 February 2021 - 09:32 AM

as per my experience go for ssd hosting and use a separate partition for cache and use cdn with that it will be more economical and best for performance to.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


All the resources listed here are just for testing purpose and they shouldn't be used at any commercial environment without a valid license.
Those are for users who wants to try them before buy. Help the developer to build it better by purchasing them from original authors.