I know it is not the purpose it was originally designed for, but the new model of keeping the entire static cache in one function could in theory allow for very powerful investigation and performance profiling, if a devel module was able to display a dump of what exactly was in the static cache at a given time.

My suggestion would make the first argument of drupal_static() optional, and return the entire static cache if no $name was passed...

Comments

sun.core’s picture

Version: 7.x-dev » 8.x-dev
sun’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)