• Resolved alexanderdean

    (@alexanderdean)


    1. Is it recommended to choose Redis for the Page Cache Method and the Minify Cache Method? I’m asking because wouldn’t disk be more persistent since Redis entries expire? What’s the most bang for the buck… longer caching (disk) or faster access (redis)?

    2. Is it recommended to run BOTH the Database Cache and the Object Cache OR should the Database Cache option not be used if the Object cache is enabled? I’m asking because under the Database Cache option is says, “Best used if object caching is not possible.” and this statement seems to imply that you should only use the database caching option when object caching isn’t possible.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    1. It really depends on your needs and what you want to achieve. Redis store their key => value stored in memory as opposed to disk-based file caching. Accessing data from memory is usually orders of magnitude faster than accessing data from disk. If you have a website with high traffic it is always better to use memory-based caching

    2. Database cache caches the results of common database queries to enhance performance. Object Cache caches the results of complex database queries to reduce server load. Object cache can also slow down websites in some cases and this is when you should use DB caching instead. Depends on performance.

    Thread Starter alexanderdean

    (@alexanderdean)

    Thanks, Marko! Looks like I’ll have to get in there and do some testing/monitoring for these two options.

    Accessing data from memory is usually orders of magnitude faster than accessing data from disk

    Right, but keep in mind that there is some caching is done by the kernel. If a system has enough RAM, most files that needs it will be cached in RAM and not fetched from the disk!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redis Questions’ is closed to new replies.