-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I've added some caching to some of UELC's db-intensive functions, reducing queries on the facilitator page: https://github.com/ccnmtl/uelc/tree/uelchandler-caching This requires a hook for custom cache clearing when the tree is changed, so we don't present the user with outdated data. This is related to PMT #107228
- Loading branch information
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Configuration | ||
============= | ||
|
||
.. configuration:: | ||
|
||
`PAGETREE_CUSTOM_CACHE_CLEAR` | ||
Use this as a hook to clear any custom caches you've set up. It will | ||
get called whenever Pagetree's internal cache is called. The function | ||
should take one argument: the `Section` whose cache is getting cleared. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ as possible. | |
:maxdepth: 2 | ||
|
||
installation | ||
configuration | ||
custom_pageblocks | ||
api | ||
testing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters