Skip to content

Instantly share code, notes, and snippets.

@roblesch
Last active February 21, 2020 20:36
Show Gist options
  • Save roblesch/e3cd5795842e9622e82028b80f02fbe6 to your computer and use it in GitHub Desktop.
Save roblesch/e3cd5795842e9622e82028b80f02fbe6 to your computer and use it in GitHub Desktop.

Caching

Overview

  • Drupal is extremely IO intensive. UN uses Redis in a nonpersistent configuration.

  • What caching does drupal need (what modules / libraries exist for caching)? Currently they are using Redis. Opcache and memcache are other options.

    • Recommend: OPcache + Redis (TODO: does Drupal support preloading?)
  • Which caching approach (PaaS/IaaS) is appropriate?

    • Recommend: Todo: check cache offerings on Azure

Investigation Status

Links

Docs


Discussion


Of Interest

Notes

Redis

Widely supported, feature rich, performant, industry standard

Memcached

Easy to configure, outperformed by Redis

OPcache

OPcache provides server-side bytecode caching and can be used with Redis

Configuring OPcache and Redis

  1. Setting up a Drupal VM

https://linuxize.com/post/how-to-install-drupal-on-ubuntu-18-04/

  1. Setting up OPcache and Redis

https://php.tutorials24x7.com/blog/speed-up-php-using-opcache-and-redis

  1. TODO - OPcache and Redis + containers

https://www.jeffgeerling.com/blog/2018/drupal-startup-time-and-opcache-faster-scaling-php-containerized-environments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment