Problem/Motivation
I have a project with a lot of directories and the time it takes to load the tree is noticeable. In the related issue, tree caching was mentioned.
Steps to reproduce
Proposed resolution
- Cache the response data and invalidate cache only when taxonomy terms change
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork media_directories-3529317
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
laurielim commentedI wanted to use CacheableJsonResponse but the issue I had was that the route was uncacheable in my project so the proposed solution is to rely on cache.default service
Comment #4
laurielim commentedComment #6
rang501 commentedThis is good idea and the change looked fine to me. Merged to 2.2.x