magento2-phpstorm-plugin icon indicating copy to clipboard operation
magento2-phpstorm-plugin copied to clipboard

Automated cache:flush cache:clean

Open palandovalex opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

If you leave the caches, then the state of the project may not correspond to the site's reaction to user actions. Manually starting the cache cleanup can be annoying, and also - you can accidentally forget to do it. But if the caches are turned off at all, then literally EVERY action will have to wait a long time until magento compiles EVERYTHING. And if there are a lot of requests on the page at once?!! Each request will require recompiling everything!

Describe the solution you'd like (*)

Thus, it would be extremely useful to add automation: When a file is saved in the IDE, it is necessary to automatically clear all caches. Thanks to this, firstly, when testing the site after making changes, the probability of cache delays will be guaranteed to be eliminated, and secondly, a lot of time will be saved for manually resetting caches and waiting, which is generated by compilations for each request. To implement this - there is no need to manually track these changes - for this you can do integration with this plugin: https://plugins.jetbrains.com/plugin/7177-file-watchers / By the way, the plugin is included in the phpstorm stock, so it is quite possible to rely on it.

Describe alternatives you've considered

https://github.com/emcrisostomo/fswatch But i dont want to install it, i already have an ide - that can do in by itself.

Additional context

Add any other context or screenshots about the feature request here.

palandovalex avatar May 18 '22 20:05 palandovalex

Hi @palandovalex. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


m2-assistant[bot] avatar May 18 '22 20:05 m2-assistant[bot]

There is also such an alternative https://github.com/mage2tv/magento-cache-clean

DmitryFurs avatar May 20 '22 08:05 DmitryFurs

Hello @palandovalex!

I believe, that provided by @DmitryFurs alternative is great option to achieve what you requested!

Regards,

bohdan-harniuk avatar Sep 08 '22 16:09 bohdan-harniuk