Looks like we may make slight optimization in couple of functions.
function panelizer_panels_cache_clear($argument, $cache) {
list($type, $key) = explode(':', $argument, 2);
ctools_include('object-cache');
ctools_object_cache_clear('panelizer_display_cache', $type . ':' . $key);
}
I hope explode-concatenation may be omitted.
Side effect - Allows other kind of cache key generation
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 2370457-panelizer-excessive_explodes-1.patch | 1 KB | andreymaximov |
Comments
Comment #1
andreymaximov commentedPatch is provided.
Comment #2
andreymaximov commentedSome tests.
http://3v4l.org/QOsGI
Comment #3
andypostMajor clean-up according http://3v4l.org/hWDM8/perf#tabs
Comment #4
andypostComment #5
damienmckennaSeems reasonable. Thank you both.