Skip to main content
  • 420 Accesses

Abstract

Building pages for dynamic web sites requires numerous trips to the database to retrieve information about saved content, site settings, the current user, and so on. Saving the results of these expensive operations for later use is one of the easiest ways within the application layer to speed up a sluggish site. And it’s not just database calls that are saved: the processing of the retrieved information in PHP is avoided too. Drupal’s built-in cache API does this automatically for most core data and provides a number of tools for Drupal developers who want to leverage the API for their own purposes. For example, the memcache module (http:// drupal.org/project/memcache) is an example of memory-based caching that makes use of the cache API.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2008 John K. VanDyk

About this chapter

Cite this chapter

VanDyk, J.K. (2008). Caching. In: Pro Drupal Development. Apress. https://doi.org/10.1007/978-1-4302-0990-4_15

Download citation

Publish with us

Policies and ethics