Answers.Body: <p>Expanding on Tamar's suggestion:</p>
  
  <p>Go to <code>Administer &gt; Customize Data and Screens &gt; Navigation Menu</code><br>
  Click <code>Add Menu Item</code><br>
  Title: Clear Cache<br>
  Url: <code>/civicrm/clearcache</code><br>
  Parent:  leave as Top level, or configure as you like<br>
  Click <code>Save</code></p>
  
  <p>Refresh the page and you should find a new entry in your menus to clear the cache.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-22T14:05:06.317Z
Answers.Text: Thank you Aidan and Tamar : /civicrm/clearcache is probably close to the solution I am looking for (it's a simple URL) and is OK for me as an admin ; but what permission should I grant to a user to run it ? ... + I am then driven to the civicrm/dashboard : I would like the user to remain on the same node : is this possible ?
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-22T15:11:16.153Z
Answers.Text: BTW, what is the (php ?) program which runs clearcache ?
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-22T09:44:39.083Z
Answers.LastActivityDate: 2018-11-22T09:44:39.083Z
Answers.UserDisplayName: Aidan
Answers.Body: <p>You will find different ways of clearing cache (as Jon mentions) documented <a href="https://docs.civicrm.org/dev/en/latest/tools/debugging/#clearing-the-cache" rel="nofollow noreferrer"><strong>HERE</strong></a>, but I agree with Tony that perhaps the UI would be easier - maybe it's just a question of adding a top menu item on the <a href="https://docs.civicrm.org/user/en/latest/the-user-interface/menu-dashboard-and-dashlets/#the-navigation-menu" rel="nofollow noreferrer"><strong>navigation menu</strong></a> or a button that will trigger /civicrm/clearcache?</p>
  
  <p>Hope this helps!
  Tamar</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-20T18:46:03.770Z
Answers.LastActivityDate: 2018-11-20T18:46:03.770Z
Answers.UserDisplayName: Tamar Meir - Cividesk
Answers.Body: <p>There are a variety of methods, but the easiest is probably to download <code>cv</code> and use <code>cv flush</code>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-20T18:29:01.573Z
Answers.LastActivityDate: 2018-11-20T18:29:01.573Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>Cleaning the civi cache updates the Smart Groups immediately (instead of waiting 5 minutes).</p>
  
  <p>Is there a way to clean the civi cache directly (instead of Menu>Administer>SystemSettings>Cleanupcache&amp;updatepaths>Cleanup Caches)</p>
  
  <p>(I am not a programmer, but I may be able to include it in a small php program, if I am told how to do it).</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-20T18:16:13.943Z
Comments.Text: You could do an SQL query using phpAdmin on your database, but seems a bit fiddly when the UI way is easier.....
Comments.UserDisplayName: Tony Horrocks
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-21T10:03:23.247Z
Comments.Text: There is an SQL query which can clean the civi cache ?
Comments.UserDisplayName: Jacques-Marie Moranne
Tags: <cache>
Title: Is there a direct way to clean the Civi Cache?
ThreadText: # Is there a direct way to clean the Civi Cache?
  
  (Asked by: username_0 on 2018-11-20)
  
  Cleaning the civi cache updates the Smart Groups immediately (instead of waiting 5 minutes).
  
  Is there a way to clean the civi cache directly (instead of Menu>Administer>SystemSettings>Cleanupcache&updatepaths>Cleanup Caches)
  
  (I am not a programmer, but I may be able to include it in a small php program, if I am told how to do it).
  
  **Tags:** cache
  
  > **Comments:**
  > **username_1**: You could do an SQL query using phpAdmin on your database, but seems a bit fiddly when the UI way is easier.....  
  > **username_0**: There is an SQL query which can clean the civi cache ?  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2018-11-22. Score: 3
  
  Expanding on username_3's suggestion:
  
  Go to `Administer > Customize Data and Screens > Navigation Menu`  
  Click `Add Menu Item`  
  Title: Clear Cache  
  Url: `/civicrm/clearcache`  
  Parent: leave as Top level, or configure as you like  
  Click `Save`
  
  Refresh the page and you should find a new entry in your menus to clear the cache.
  
  > **Comments:**
  > **username_0**: Thank you username_2 and username_3 : /civicrm/clearcache is probably close to the solution I am looking for (it's a simple URL) and is OK for me as an admin ; but what permission should I grant to a user to run it ? ... + I am then driven to the civicrm/dashboard : I would like the user to remain on the same node : is this possible ?  
  > **username_0**: BTW, what is the (php ?) program which runs clearcache ?  
  
  ---
  
  ### Answer by username_3 on 2018-11-20. Score: 2
  
  You will find different ways of clearing cache (as Jon mentions) documented [**HERE**](https://docs.civicrm.org/dev/en/latest/tools/debugging/#clearing-the-cache), but I agree with username_1 that perhaps the UI would be easier - maybe it's just a question of adding a top menu item on the [**navigation menu**](https://docs.civicrm.org/user/en/latest/the-user-interface/menu-dashboard-and-dashlets/#the-navigation-menu) or a button that will trigger /civicrm/clearcache?
  
  Hope this helps!
  username_3
  
  
  ---
  
  ### Answer by username_4 on 2018-11-20. Score: 1
  
  There are a variety of methods, but the easiest is probably to download `cv` and use `cv flush`.
  
  
  ---
  
  