Created
May 28, 2026 11:38
-
-
Save sashabeep/90d33f9c2c84a5f0b6fc5f15b5f49e95 to your computer and use it in GitHub Desktop.
Cache Cleaner Evocms
This file contains hidden or 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
| //OnWebPageComplete | |
| if (count(scandir(MODX_BASE_PATH.'assets/cache/')) > 99) { | |
| $modx->clearCache('full'); | |
| } | |
| if (count(scandir(MODX_BASE_PATH.'core/storage/cache/')) > 99) { | |
| use Illuminate\Support\Facades\Cache; | |
| Cache::flush(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment