AydinHassan / m2-opcache-monitor

Monitor PHP OpCache from the Admin
MIT License
38 stars 5 forks source link

Flushing Opcache from CLI #2

Open Loxzibit opened 7 years ago

Loxzibit commented 7 years ago

@AydinHassan Are you planning on adding a command to flush cache that can be ran by Circle Ci after bin/magento setup:static-content:deploy? At the moment Circle Ci creates an opcache.php after deploy, would be better to run a command instead. What are your thoughts?

AydinHassan commented 7 years ago

@Loxzibit it sounds like a good idea to me! Then any body can use - it's also easier to maintain here rather than in the circle ci config.

Fancy having a crack at it?

Loxzibit commented 7 years ago

@AydinHassan Sure, will take a look when i get home 👍

JKetelaar commented 6 years ago

@Loxzibit, I found this on the web. I know this isn't your code, but this seems to have quite a delay on the feature.

With this you can do:

php bin/magento opcache:clear