Skip to content
Snippets Groups Projects
Unverified Commit 1778f220 authored by eileen's avatar eileen :8ball: Committed by GitHub
Browse files

Docs make it clear that clear is the preferred method

Changing flush to clear as the preferred method. I think when it was added there was an assumption devs would be developing against < 5.4 so it made sense to give primacy to flush but times have changed

@totten
parent 5ecd8f11
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ The `CRM_Utils_Cache_Interface` class lays out the methods for saving and retrie
* Flush the entire cache
```php
Civi::cache()->flush();
Civi::cache()->clear();
```
!!! tip "PSR-16 Compliance (v5.4+)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment