2

I’ve found that _cache directory is consuming 17GB of space which is under magento_root_folder/var/tmp/ directory. I removed it, but after 2 days, I’ve again received an alert regarding low disk space on magento_root_folder/var/tmp/ enter image description here

I stuck on it, hope anyone's help

1
  • You have to create cronjob which will delete every day mid night. On temp , CSS and js merge is saved Which is create based on customer session
    – Amit Bera
    Aug 30, 2022 at 8:17

1 Answer 1

1

The Magento/Adobe-suggested permissions (see here) make the pub/static file un-writable, so when the system tries to make a _cache folder and put .css and .js merge files in it, it can't and has to revert to the magento/var/tmp folder - and then it keeps adding those files again and again ad nauseam.

Solution:

chmod 664 pub/static

(644 might do the job)

This is addressed, but not solved, here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.