Commit 559d915
committed
Object cache (Redis drop-in): enable/disable, UI, and purge behavior
- ObjectCache: detect drop-in, enable/disable, restore on activation, flush
- Only show Object Cache block when Redis constants available (no toggle when unavailable)
- Preference option (1/true/null) respected; restore drop-in when preference on but file missing
- enable() returns error when Redis not configured; no download attempted
- Disable: flush + clear options cache (active_plugins, alloptions), shutdown flush so Redis stays empty
- purge_all (nfd_purge_all=1) and CacheController purge_all now flush object cache
- Lifecycle: maybe_restore_on_activation, maybe_remove_dropin_if_unavailable, clear_options_object_cache
- REST get_settings and runtime call maybe_restore_dropin so UI state matches preference
- Add credis to composer for drop-in compatibility
- UI: Object Cache section with toggle; sync with store on cache level change1 parent ef4395b commit 559d915
File tree
19 files changed
+718
-35
lines changed- build/performance
- includes
- Cache
- Types
- RestApi
- src
- components/App
- sections
- CacheSettings
- ObjectCache
- store
19 files changed
+718
-35
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | | - | |
79 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| 106 | + | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| |||
0 commit comments