From 1778f220789cb2226766126323fe193f3124d66b Mon Sep 17 00:00:00 2001
From: Eileen McNaughton <eileen@mcnaughty.com>
Date: Thu, 4 Apr 2019 14:55:30 +1300
Subject: [PATCH] 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
---
 docs/framework/cache.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/framework/cache.md b/docs/framework/cache.md
index 5841d500..cdd554d3 100644
--- a/docs/framework/cache.md
+++ b/docs/framework/cache.md
@@ -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+)"
-- 
GitLab