# Cache Clear not working in Shopware 5

**URL:** <https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156>\
**Category:** Shopware 5\
**Tags:** general\
**Created:** [6. September 2023 um 11:12 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156 "2023-09-06T11:12:04Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![expertdev9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/expertdev9/32/21721_2.png) [@expertdev9](https://forum.shopware.com/u/expertdev9)\
**Post date:** [6. September 2023 um 11:12 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/1 "2023-09-06T11:12:04Z")

</div>

Hello Team,

I am currently experiencing an issue with cache cleaning on our production website. The problem I’m encountering is that when I access the cache/performance page, it loads correctly, but the cache-clearing process is unresponsive.

Upon further investigation, I inspected the browser console under the network tab and observed that the request to clear the cache is resulting in a 500 error. I have attached a screenshot of this error for your reference.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/d/0/d04ddbdcccfe39716c7e18b09a95a151430fbbd5.png)

Given the urgency of our need to implement certain changes and install a new plugin that requires cache clearance, I kindly request your assistance in resolving this issue promptly.

If you have any questions or require additional information, please do not hesitate to reach out. Your help in resolving this matter is greatly appreciated.

Thank you.  
ExpertDev

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [7. September 2023 um 12:31 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/2 "2023-09-07T12:31:04Z")

</div>

hey @expertdev9

if you have a request, that returns a 500 status code, you should be able to get a more details exception message of what happen exactly. Please refer to this article [Shopware 5 - Tutorials & FAQs -Debugging error messages in Shopware](https://docs.shopware.com/en/shopware-5-en/tutorials-and-faq/debugging-error-messages-in-shopware)

If you find some more information, please let us know

Best regards from Schöppingen  
Michael Telgmann

---

<div class="post-metadata">

**Author:** ![expertdev9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/expertdev9/32/21721_2.png) [@expertdev9](https://forum.shopware.com/u/expertdev9)\
**Post date:** [11. September 2023 um 07:12 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/3 "2023-09-11T07:12:21Z")

</div>

Hi @Michael_Telgmann ,

I have reviewed the backend logs but couldn’t pinpoint the exact issue based on the information available. Could you kindly assist in identifying the problem, as the error seems to be recorded in the error log file? I have attached the log file error code here for your reference.

```auto
exception 'LogicException' with message 'Corrupted path detected: Industrial Panel PC/SlimLine WM IH70 v.1.4/Drivers/Win 10/Intel Dynamic Platform and Thermal Framework(DPTF) 8.1.10600.147.zip' in /engine/Shopware/Plugins/Community/Core/SwagSecurity/Components/CWE367/Util.php:319 Stack trace:
#0 /engine/Shopware/Plugins/Community/Core/SwagSecurity/Components/CWE367/Util.php(149): League\Flysystem\Util::removeFunkyWhiteSpace('Industrial Pane...')
#1 /engine/Shopware/Plugins/Community/Core/SwagSecurity/Components/CWE367/Util.php(134): League\Flysystem\Util::normalizeRelativePath('Industrial Pane...')
#2 /vendor/league/flysystem/src/Filesystem.php(347): League\Flysystem\Util::normalizePath('Industrial Pane...')
#3 /custom/plugins/BpaDownloadCenter/Controllers/Frontend/Downloads.php(77): League\Flysystem\Filesystem->getMetadata('Industrial Pane...')

```

Your assistance in investigating this matter is greatly appreciated. Please feel free to reach out if you require any supplementary information.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![expertdev9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/expertdev9/32/21721_2.png) [@expertdev9](https://forum.shopware.com/u/expertdev9)\
**Post date:** [13. September 2023 um 13:57 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/4 "2023-09-13T13:57:09Z")

</div>

Hi There, I am still waiting for the response.

Now I am getting below error in the log file :

`exception 'Shopware\Components\CSRFTokenValidationException' with message 'The provided X-CSRF-Token for path "/" is invalid. Please go back, reload the page and try again.' in /engine/Shopware/Components/CSRFTokenValidator.php:155 Stack trace:`

Can anyone please help me on this?

Thanks

---

<div class="post-metadata">

**Author:** ![expertdev9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/expertdev9/32/21721_2.png) [@expertdev9](https://forum.shopware.com/u/expertdev9)\
**Post date:** [18. September 2023 um 04:53 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/5 "2023-09-18T04:53:15Z")

</div>

Hi There,

Is anyone can help me here?

Still waiting for the same.

Thanks

---

<div class="post-metadata">

**Author:** ![DanielK1511](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/danielk1511/32/20652_2.png) [@DanielK1511](https://forum.shopware.com/u/DanielK1511)\
**Post date:** [18. September 2023 um 09:57 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/6 "2023-09-18T09:57:49Z")

</div>

With the attached logs, we barely understand what could be wrong with your System.  
The first log seems to be about corrupted paths for, what I assume, are intel drivers.  
Reinstalling the drivers might fix the driver issue.

The CSRF Issue could be related to a bot, which wouldn’t necessarily mean that it’s the issue you are facing in your Backend.

What PHP Version are you running?

---

<div class="post-metadata">

**Author:** ![expertdev9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/expertdev9/32/21721_2.png) [@expertdev9](https://forum.shopware.com/u/expertdev9)\
**Post date:** [22. September 2023 um 05:08 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/7 "2023-09-22T05:08:38Z")

</div>

Hello @DanielK1511

Thanks for your response.

We are using PHP 7.1.33

Please let me know if you need other informations.

Thanks

---

<div class="post-metadata">

**Author:** ![DanielK1511](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/danielk1511/32/20652_2.png) [@DanielK1511](https://forum.shopware.com/u/DanielK1511)\
**Post date:** [22. September 2023 um 09:30 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/8 "2023-09-22T09:30:00Z")

</div>

What Shopware Version are you on?

---

<div class="post-metadata">

**Author:** ![expertdev9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/expertdev9/32/21721_2.png) [@expertdev9](https://forum.shopware.com/u/expertdev9)\
**Post date:** [22. September 2023 um 10:10 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/9 "2023-09-22T10:10:11Z")

</div>

We are using shopware 5.3.7

---

<div class="post-metadata">

**Author:** ![DanielK1511](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/danielk1511/32/20652_2.png) [@DanielK1511](https://forum.shopware.com/u/DanielK1511)\
**Post date:** [22. September 2023 um 11:34 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/10 "2023-09-22T11:34:44Z")

</div>

Have you tried debugging as Michael has suggested?

> **[Shopware 5 - Tutorials & FAQs -Debugging error messages in Shopware](https://docs.shopware.com/en/shopware-5-en/tutorials-and-faq/debugging-error-messages-in-shopware#the-provided-x-csrf-token-is-invalid)**
>
> On this page you will find some useful information that will help you understand error messages and determine the cause.

Maybe you can update your installation and upgrade your PHP.

---

<div class="post-metadata">

**Author:** ![expertdev9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/expertdev9/32/21721_2.png) [@expertdev9](https://forum.shopware.com/u/expertdev9)\
**Post date:** [25. September 2023 um 06:53 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/11 "2023-09-25T06:53:22Z")

</div>

Hi @DanielK1511 ,

Thanks for the response.

Could you kindly confirm whether updating the installation, plugins, or PHP version will not result in any changes or removal of existing configurations and data?

Also please provide me the steps or guide for the update process of shopware.

Thanks

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [25. September 2023 um 07:40 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/12 "2023-09-25T07:40:39Z")

</div>

You can find everything you need to know about updates/upgrades, system requirements etc. in the documentation:

> **[Shopware 5 upgrade guide](https://developers.shopware.com/developers-guide/shopware-5-upgrade-guide-for-developers/)**
>
> Shopware 5 upgrade guide

Regards

---

<div class="post-metadata">

**Author:** ![DanielK1511](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/danielk1511/32/20652_2.png) [@DanielK1511](https://forum.shopware.com/u/DanielK1511)\
**Post date:** [25. September 2023 um 07:54 UTC](https://forum.shopware.com/t/cache-clear-not-working-in-shopware-5/101156/13 "2023-09-25T07:54:27Z")

</div>

Hey @expertdev9

Updating always has a certain risk to it, you could break something or everything works out fine.  
Before making upgrades, you should make regular backups and test any planned changes on a test system.  
Once there is everything alright, you can bring the changes to your live environment.

@SCOOPEX has sent the right upgrade guide to help you with that matter.

Best regards
