API:clearCache
From MODx Wiki
API Function Definition:
clearCache
- Versions
- > 0.6.0 ?
- Return Values
- Success: stripped string
- Fail: null
- Data Type
- boolean
- Object Hierarchy
- DocumentParser
boolean clearCache();
Clears the cache directory.
[edit]
Examples
// do some changes that are not noted by the cache manager // typically in a module $modx->clearCache();
[edit]
Related Functions
[edit]
Source Code
| File: | manager/includes/document.parser.class.inc.php |
|---|---|
| Line: | 1495 |
function clearCache() { $basepath= $this->config["base_path"] . "assets/cache"; $filesincache= 0; $deletedfilesincache= 0; if ($file != "." && $file != "..") { $filesincache += 1; $deletedfilesincache += 1; } } } return true; } else { return false; } }
[edit]
