Problem/Motivation
The cache bins for discovered pattern libraries and pattern definitions are currently being loaded into the discovery cache bin, but by default this bin is backed using the chained fast backend. Since this cache data doesn't change frequently and is typically only loaded and written once per request, this may work better going into the database cache by default where it can more easily be shared between web heads as well. If this gets separated to an independent new bin this can be backed by the database by default while still allowing individual sites to customize the data handling as desired.
Steps to reproduce
- Clear all caches
- View the
cache_discoverydatabase table - Observe the presence of the following cid entries:
patternkit.library_namespacespatternkit_pattern_defintiions:*
After this change, these cache entries should be stored in the cache_patternkit table instead.
Proposed resolution
Create a new patternkit cache bin
Inject the new bin into related services
Store library namespaces and pattern definitions in new cache bin
Remaining tasks
User interface changes
None
API changes
None
Data model changes
New cache_patternkit database table
| Comment | File | Size | Author |
|---|
Issue fork patternkit-3419287
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
sluceroComment #4
minsharm commentedRetested the issue and result looks good to me. Marking it as Verified QA.
Steps to test
Results : These cache entries is stored in the cache_patternkit table instead.
Comment #6
sluceroMerged for inclusion in the beta 9 release.