How to speed up your WordPress site with Redis Cache on AWS Lightsail

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 60

  • @elinorbahiti7486
    @elinorbahiti7486 Год назад +1

    A very useful tutorial, thank you!

  • @tauqir1985
    @tauqir1985 3 года назад +1

    Thanks for another great video. One request if you can make video on using varnish cache on bitnami WordPress instance.

  • @phadshyam
    @phadshyam 3 года назад +1

    Mera Naam Mukesh hai... Just Kidding Keep it up.

  • @vicentemanzoflores644
    @vicentemanzoflores644 6 месяцев назад

    is there any conflict using this if i already have a cdn distribution on my wordpress intances?

  • @majdaburas6804
    @majdaburas6804 Год назад

    thanks for your work, I have 2 simple questoins
    1- how to find a specific word in ssh window?
    could redis object cache be used with another cache plugin together? like W3 Total chach?

  • @djmarceloastorga
    @djmarceloastorga 3 года назад +1

    Another great video. One question: which is better, redis or memcached to make websites load very fast?

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад +2

      Thanks. I'm not sure at this point, but I've read Redis maybe more beneficial for WordPress.

  • @talharafique8913
    @talharafique8913 2 года назад +1

    Thank you brother.
    Just one question again. Elementor pages will be cached by redis or not ?
    I know CSS files are static and it will be served by CDN. But As much as i know elementor makes shortcodes for widgets on pages in backend and it converts to HTML when any page request creates.
    So that elementor widget is static or dynamic ?
    CDN or redis for elementor ?

    • @MukeshsTechSpace
      @MukeshsTechSpace  2 года назад

      HTML usually isn't cached. Redis will cache the objects so the plugins wouldn't have to query mysql to render the widgets.

  • @nyarkowiz
    @nyarkowiz 3 года назад +1

    Please Help: How do I uncomment lines In the Terminal? I mean, after searching and adding lines, how do I save it? Which Windows key do I need to press for the changes to save? (I Uses the light sail Brower Terminal) Thanks In advance

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад +2

      This video may help: ruclips.net/video/WI8HiuMmouo/видео.html

    • @VicToR_HuGo_01
      @VicToR_HuGo_01 2 года назад

      @@MukeshsTechSpace This link helped me, I didn't know the commands that could be used either. Thank you very much for the video, I did it today and it worked for me, not in an impressive way but the cache of this method helped me. Greetings from Mexico.

  • @andrylubis9337
    @andrylubis9337 Год назад

    Hi Mukesh, is the Redis save cache in server? If yes, how to remove cache with certain interval?

  • @klitos15
    @klitos15 2 года назад

    Hello Mukesh, does Redis needs to be manually updated on the server when the Redis Wordpress plugin gets an update?

    • @MukeshsTechSpace
      @MukeshsTechSpace  2 года назад +1

      Good question. I believe Redis server will be updated as part of the system updates (maybe critical patches only) but yes you can manually update it. I don't think both are interdependent for updates.

  • @carloslg80
    @carloslg80 2 года назад

    Hi Mukest, thank You for sharing. But l have a doubt. The maxmemory always has to be 256mb?

    • @MukeshsTechSpace
      @MukeshsTechSpace  2 года назад +1

      I found that to be common setup for WordPress although that can be changed to better fit the website needs.

    • @carloslg80
      @carloslg80 2 года назад

      @@MukeshsTechSpace Thank you.

  • @tamimshahriar1064
    @tamimshahriar1064 3 года назад

    I can't install php redis extension using the command ( sudo pecl install redis ). I have followed all the steps and redis server is running. I am getting notification that "No release available for package "pecl.php.net/redis". install failed". what could be the reason? Thanks

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад

      I think pecl.php.net is down at the moment. Try after some time.

  • @saltikkenan
    @saltikkenan 3 года назад

    Make a video elastcache redis with lightsai

  • @sheikhnasim3048
    @sheikhnasim3048 2 года назад

    Not Able Write 256mb on using lightsail ssh

    • @MukeshsTechSpace
      @MukeshsTechSpace  2 года назад

      If you are using a new instance see this video: ruclips.net/video/KwGRvT2RcX8/видео.html
      Also be sure to use sudo for opening files.

  • @hugopineda7225
    @hugopineda7225 2 года назад

    Hi there, great tutorial! just a quick question if you can point me in the right direction: are there any special concerns in order to set this up for a multi-instance environment? i'm using a lightsail load balancer with 2 instances and also an external RDS database, but there seems to be an issue with cache invalidation from one instance to the other. (when a saved query is updated in instance A, it does not replicate to instance B, so for example some woocommerce orders in Instance A change to status processing, but for B they remain with status "pending" of course they have the right status in the database but i'm guessing that is being cached and not updated in both instances)

    • @MukeshsTechSpace
      @MukeshsTechSpace  2 года назад +1

      I'm not sure. Redis with the way I show only works with the WordPress site on that instance. Similar to the mysql database you may have to move Redis to a dedicated instance and point each instance to it.

    • @hugopineda7225
      @hugopineda7225 2 года назад

      @@MukeshsTechSpace perfect, thanks a lot man! Love your channel lots of useful and actionable guides

    • @MukeshsTechSpace
      @MukeshsTechSpace  2 года назад

      Thanks for the comments!

    • @carloslg80
      @carloslg80 2 года назад

      Interesante caso!

  • @adhamahmed2598
    @adhamahmed2598 2 года назад

    After greeting
    First, excellent hosting, I did everything on lightsail, but there is a problem within the webmaster tools, which is the most important site that puts a link to your site, which is the public IP. How do I solve this problem
    Thank you so much

    • @MukeshsTechSpace
      @MukeshsTechSpace  2 года назад +1

      I'm not sure. try to use a search / replace plugin to make sure all references point to a domain name and not IP in your content. Good luck.

    • @adhamahmed2598
      @adhamahmed2598 2 года назад

      @@MukeshsTechSpace Thank you very much my friend 🤝

  • @thakurrameshwarsinghjayas9159
    @thakurrameshwarsinghjayas9159 2 года назад

    Hi sir I am unable to edit the redis. Conf file kindly help me to add these two line in redis.config
    1. Maxmemory 25mb
    2.maxmemory-policy alkeys-lfu

    • @MukeshsTechSpace
      @MukeshsTechSpace  2 года назад

      make sure you are opening the file with sudo command. Other than than I'm not sure why you wouldn't be able to edit the file.

  • @ecko1882
    @ecko1882 3 года назад

    I am running a multi site, when I add my domain name to php should I list each subdomain or just my top level domain name?

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад +1

      I'm not entirely sure on multi-site setup. My suggestion would be to keep your top-level domain in wp-config. However check if the redis plugin supports multi-site setups, if it does then you can enable it for all the subsites you have. If it doesn't then perhaps look into W3 Total Cache plugin and configure it for your multisite and redis. Try this on a non-live server since this is only a suggestion. Good luck

  • @th9847
    @th9847 3 года назад

    I'm also looking to merge two sites one of which i mentioned earlier i tried to export the content and tried to import it to the destination site but an error pop up and it says couldn't connect to local host.

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад

      In this tutorial: ruclips.net/video/4Ec5nU-N6jw/видео.html I show how to use a migration plugin to move a site. Good Luck.

    • @th9847
      @th9847 3 года назад

      Thanks a lot

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад

      You're welcome

  • @namitshri
    @namitshri 3 года назад

    Will it be causing any issue with Wordpress woocommerce website? Concerned for logged in users' personal cart pages and other ecomm processes?

    • @namitshri
      @namitshri 3 года назад

      BTW, great tutorial

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад +1

      Thanks. I am not sure of any issues with woocommerce. Might need some configurations. Here is an article that may help: wp-rocket.me/blog/cache-plugin-for-woocommerce/#section-4

    • @namitshri
      @namitshri 3 года назад

      @@MukeshsTechSpace Great! Thank you :)

  • @sheikhnasim3048
    @sheikhnasim3048 3 года назад

    Can We Use Redis Along With Wp Rocket And For WordPress MultiSite

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад

      Sorry I don't have experience with Wp Rocket so not sure. You can try creating a duplicate non-prod instance and try it out.

  • @palwindersingh9678
    @palwindersingh9678 3 года назад

    Hi, at 13:22, should I add 'www' in front of my website's url or just keep the domain only and leave out 'www?'

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад +1

      It should not matter. You can leave it with 'www' or without. Thanks.

    • @palwindersingh9678
      @palwindersingh9678 3 года назад

      @@MukeshsTechSpace Thanks. 😊

  • @sachintiwari2289
    @sachintiwari2289 3 года назад

    Pecl install redis not working ,
    Comand 'pecl' not found, but can be installed with:
    apt install php- pear

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад +1

      You will need to install pecl if your instance doesn't have it. Install PEAR which comes with PECL. sudo apt-get install php-pear

    • @sachintiwari2289
      @sachintiwari2289 3 года назад

      @@MukeshsTechSpace Ohk thanks.
      Keep up good work.

  • @th9847
    @th9847 3 года назад

    I've moved my sites recently to lightsail, currently i've 3 sites hosted there so the problem is one of my site is quite heavy kindly guide me what would be that best solution for that to keep it up and running.

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад

      You should checkout my tutorial on Lightsail Alarms to see how to look at metrics: ruclips.net/video/eBkSJeQ3YBw/видео.html. That will indicate if your server is out of resources. If it is then you may try upgrading to higher instance plan (ruclips.net/video/54Z-Zt44ZAY/видео.html). If you are not getting high traffic and still resources are high, it is indication that you have plugin or code issues. Good Luck

    • @th9847
      @th9847 3 года назад

      @@MukeshsTechSpace thank you so much bhai ❤️❤️❤️

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад

      You're welcome

  • @amankr0787
    @amankr0787 3 года назад

    how to install redis on amazon linux ec2 ??

    • @MukeshsTechSpace
      @MukeshsTechSpace  3 года назад

      You can install using the package manager of AWS Linux or compile it from scratch.