Skip to content

Drupal 8 module that demonstrates the use of the Cache API

Notifications You must be signed in to change notification settings

upchuk/cache_demo_d8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This module demonstrates the impact using the Cache API in Drupal 8 can have on the speed of heavy requests.

To try it out, enable the module and navigate to cache-demo. When you navigate there for the first time, the API call gets made and the 100 posts get stored in the cache. You can the reload the page to see how long it takes for those posts to be now retrieved from the cache. Upon doing that, you'll have a link to clear the cache (by a page refresh with the clear query string) followed by another link which refreshes the page without the clear query string which in turn makes the API call again. And on like that to test the contrast in duration.

About

Drupal 8 module that demonstrates the use of the Cache API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages