Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
Ctools provides an integrated caching mechanism for plugin types.
The documentation says
- cache
- Defaults to: FALSE
- If set to TRUE, the results of ctools_get_plugins will be cached in the 'cache' table (by default), thus preventing .inc files from being loaded. ctools_get_plugins looking for a specific plugin will always load the appropriate .inc file.
This could save us some milliseconds :)
Proposed resolution
Enable the cache. This should work with the class detection as well since the validation code uses ctools_get_plugins()
to load the plugin files which contain the classes.
Remaining tasks
Reviews needed.
User interface changes
None
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
field_validation-enable-ctools-plugin-cache.patch | 744 bytes | das-peter | |
Comments
Comment #1
g089h515r806 CreditAttribution: g089h515r806 commentedit looks nice.
Comment #3
g089h515r806 CreditAttribution: g089h515r806 commentedcommitted