Closed (fixed)
Project:
Panels
Version:
6.x-3.x-dev
Component:
Mini panels
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2009 at 16:22 UTC
Updated:
6 Aug 2010 at 03:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
damienmckennaHere's something to get started. The first time it executes per page load it checks if result set was cached before and if so then just return that data; if nothing was cached previously, it compiles the mini_panels list per normal then saves the results to the cache and in a static variable. Subsequent function calls will have valid data in the static variable so just returns that.
Comment #2
damienmckennaFYI this code was originally written by datacalibre, I just turned it into a patch.
Comment #3
damienmckennaForgot to update the status.
Comment #4
merlinofchaos commentedI honestly don't see the value here.
Comment #5
damienmckennaIt's purely a performance thing, Datacaliber did some profiling on skinet.com prior to launch and found this patch shaved a few hundred ms off the page load. This works well with the caching engine (Panels plugin! Coming soon) that he built which gets logged-in page load on complex pages down really low.
Comment #6
damienmckennaThis needs additional work as there's currently no provision for flushing the cache after modifications are made.
Comment #7
merlinofchaos commentedhttp://drupal.org/node/732864 contains justification for this.
Comment #8
merlinofchaos commentedI did this as part of retooling the Mini Panels UI to use CTools Export UI.
Comment #9
damienmckennaAmazing stuff! Looking forward to the next release!