Answers.Body: <p>Please read <a href="https://craftcms.stackexchange.com/questions/24166/basic-ajax-how-to/24167#24167">this</a> to get to know how to create a basic ajax request</p>
  
  <p>And change the route to </p>
  
  <pre><code>action: 'utilities/clear-caches-perform-action',
  caches: '*'
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-04T08:15:54.233Z
Answers.LastActivityDate: 2018-05-04T08:15:54.233Z
Answers.UserDisplayName: Robin Schambach
Body: <p>I currently implemented a fixed position edit button in the front-end when a user is logged in based on this " <a href="https://craftcms.stackexchange.com/questions/7104/get-entry-edit-link-in-twig">Get Entry Edit Link in Twig</a> " Is there a version of this link, but to Clear Cache?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-03T19:54:05.250Z
Comments.Text: No because clearing caches only works via ajax request as you can see here https://github.com/craftcms/cms/blob/develop/src/controllers/UtilitiesController.php#L329. Do you want to perform one?
Comments.UserDisplayName: Robin Schambach
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-03T21:06:01.910Z
Comments.Text: That would be a great option..yes.
Comments.UserDisplayName: ninjaroll
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-03T13:44:35.167Z
Comments.Text: Template caches will get broken regardless of whether the changes were made in the AdminCP or your front end form.
Comments.UserDisplayName: andrew.welch
Tags: <templating><craft3>
Title: Front-end link to Clear Cache?
ThreadText: # Front-end link to Clear Cache?
  
  (Asked by: username_0 on 2018-05-03)
  
  I currently implemented a fixed position edit button in the front-end when a user is logged in based on this " [Get Entry Edit Link in Twig](https://craftcms.stackexchange.com/questions/7104/get-entry-edit-link-in-twig) " Is there a version of this link, but to Clear Cache?
  
  **Tags:** templating, craft3
  
  > **Comments:**
  > **username_1**: No because clearing caches only works via ajax request as you can see here https://github.com/craftcms/cms/blob/develop/src/controllers/UtilitiesController.php#L329. Do you want to perform one?  
  > **username_0**: That would be a great option..yes.  
  > **username_2**: Template caches will get broken regardless of whether the changes were made in the AdminCP or your front end form.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-05-04. Score: 1
  
  Please read [this](https://craftcms.stackexchange.com/questions/24166/basic-ajax-how-to/24167#24167) to get to know how to create a basic ajax request
  
  And change the route to
  
  ```
  action: 'utilities/clear-caches-perform-action',
  caches: '*'
  
  ```
  
  
  ---
  
  