Skip to main content
Drupal Documentation for SCLS

Main navigation

  • Home
  • How-To Info for Library Staff
  • Drupal 10
  • Help

Breadcrumb

  1. Home
  2. How-To Info for Library Staff

Performance settings: Cache pages for anonymous users

One of Drupal's settings for performance is: “Cache pages for anonymous users.” This setting is turned on by default for SCLS-hosted Drupal sites.

What it does

When “Cache pages for anonymous users” is turned on for a site, when a visitor requests a page, Drupal will cache the HTML for that page and quickly serve the cached copy to later visitors. Logged-in users (such as library staff editing the website) would not get the cached copies; it would be anonymous, not-logged-in, visitors receiving the cached pages. When Cron runs the cached copies are deleted, and the cache begins to rebuild as new pages are requested.

A silly example

In other words, imagine your website is a kitchen. Someone comes home and says, “Let’s have pot roast.” So you cook a pot roast from scratch, serve it, and put the leftovers in the refrigerator. Later, more people come home and say, “Let’s have pot roast.” Since the pot roast is all made up in the fridge, you quickly serve up pot roast for them. The fridge gets cleaned on a schedule so that nothing gets too old, and the cycle starts again.

The pot roast is a page on your website; the refrigerator is Drupal’s page cache. Getting leftover pot roast out of the fridge is faster than cooking a new one from scratch.

Benefits and drawbacks

Page caching is generally considered safe and recommended. Cached pages should load faster for patrons than un-cached. A possible downside to page caching is occasional, temporary delays between what you see on your site as a logged-in user and as an anonymous visitor.

Book traversal links for Performance settings: Cache pages for anonymous users

  • Placing LINKcat Title Lists on a website
  • Up
  • Slick Carousel
  • Managing Accounts for Your Drupal Site
  • Images
  • Creating and Editing Website Content
  • Uploading Files to Media
  • Changing Menu Links
  • Creating Photo Albums & Galleries
  • Folders, Directories, and File Structure
  • Blocks
  • Paths and URL Aliases
  • Configuring Site Information
  • Developer Permissions
  • Homepage Variations
  • Events/Programs with repeating dates
  • Registration for Events/Programs
  • What is Cron?
  • Avoid mixed content warnings (HTTPS/HTTP)
  • LINKcat Title List (Experimental)
  • Performance settings: Cache pages for anonymous users
  • Slick Carousel
  • Uploading Files with IMCE

Tags

accordion (1)
account (2)
anchors (1)
blocks (0)
cache (1)
carousel (2)
CKEditor (5)
configuration (1)
content types (1)
CSS (1)
disable rich-text (1)
Drupal 10 (15)
Drupal 9 (16)
email (2)
embed code (1)
Entity Registration (5)
events (6)
file browser (1)
files (4)
files media (1)
folders (1)
formatting (2)
front page (3)
Google Analytics (1)
headings (2)
HTML (1)
iframe (2)
images (4)
imce (1)
Layout Builder (3)
link a pdf (1)
links (5)
login (1)
media (2)
menus (3)
nodes (1)
openid (1)
paste as plain text (1)
paths (4)
performance (1)
photo albums (1)
photo galleries (1)
redirects (3)
registration (5)
remove format (1)
repeat dates (2)
reports (1)
revisions (1)
sidebars (0)
site name (1)
slogan (1)
source (1)
sticky (2)
text formats (1)
themes (1)
toolbar (2)
URL aliases (4)
Webform (2)
widget (1)