Book Image

WordPress Web Application Development

By : Rakhitha Nimesh Ratnayake
Book Image

WordPress Web Application Development

By: Rakhitha Nimesh Ratnayake

Overview of this book

Table of Contents (19 chapters)
WordPress Web Application Development Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Lesser-known WordPress features


Throughout this book, we have looked at the major components related to web application development. WordPress also offers some additional features that are rarely noticed among the developers community. Let's get a brief introduction to the following lesser-known features of WordPress:

  • Caching

  • Transients

  • Testing

  • Security

Caching

In complex web applications, performance becomes a critical task. There are various ways of improving the performance from the application level as well as the database level. Caching is one of the major features of the performance-improving process, where you keep the result of complex logic or larger files in the memory or database for quick retrievals. WordPress offers a set of functions for managing caching within applications. Caching is provided through a class called WP_Object_Cache, which can be used effectively to manage nonpersistent cache.

We can cache the data using the built-in wp_cache_add function, as defined in the following...