mage2tv / magento-cache-clean

A faster drop in replacement for bin/magento cache:clean with file watcher
BSD 3-Clause "New" or "Revised" License
527 stars 61 forks source link

Using cache cleaner with warden.dev #80

Closed sebastian-ehrling closed 4 years ago

sebastian-ehrling commented 4 years ago

Hi vinai,

sometimes when using magento cache cleaner, I get the following error if i save a file in my editor. Any idea?

thanks for your help!

13:40:12 Cleaning cache type(s) layout full_page
fs.js:114
throw err;
^

Error: ENOENT: no such file or directory, lstat '/var/www/html/vendor/mycompany/module-app-info/view/frontend/layout/.mutagen-temporary-cross-device-rename0'
at Object.lstatSync (fs.js:845:3)
at xi (/home/www-data/.composer/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:343:167)
at d (/home/www-data/.composer/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:347:73)
at FSWatcher. (/home/www-data/.composer/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:346:174)
at FSWatcher.emit (events.js:198:13)
at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:131:12)
Vinai commented 4 years ago

Thanks for opening the issue here, this week is a little tough, but I hope to get an update with improved mutagen compatibility out by next week.

Vinai commented 4 years ago

Which version of the cache watcher are you using @sebastian-ehrling?

sebastian-ehrling commented 4 years ago

Hi @Vinai i use v1.0.29

Thx!

Vinai commented 4 years ago

Note to self: this is the trace without advanced compiler optimization:

fs.js:114
    throw err;
    ^

Error: ENOENT: no such file or directory, lstat '/var/www/html/vendor/magento/module-release-notification/view/adminhtml/layout/.mutagen-temporary-cross-device-rename0'
    at Object.lstatSync (fs.js:845:3)
    at file.system.dir_QMARK_ (/home/www-data/.composer/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:2685:126)
    at /home/www-data/.composer/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:2698:183
    at c (/home/www-data/.composer/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:2698:312)
    at FSWatcher.<anonymous> (/home/www-data/.composer/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:2696:382)
    at FSWatcher.emit (events.js:198:13)
    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:131:12)
Vinai commented 4 years ago

Release 1.0.30 (just arrived) improves stability with short lived files like .mutagen-temporary*. I wasn't able to crash it during a full day of working in warden. Hope it helps you, too.

sebastian-ehrling commented 4 years ago

thx vinai!