This example will search Drupal's core folder and display a count of the PHP files in it. This can take a while, since there are a lot of files to be searched. We will search filesystem just once and save output to the cache. We will use cached data for later requests.
Reload this page to see cache in action. You can use the button below to remove cached data.
11187 files exist in this Drupal installation; retrieved from cache in 0.19 ms.