I would like to know if, when doing "php bin/magento indexer:reindex" the folders "var", "generated" and "pub/static" have to be writable ?
Alternatively, does reindexing only work at database level?
All advice and opinions are welcome! Thanks!
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
As per my knowledge, indexing is done only on database level.
Magento Indexer tracks database changes for a certain entity and performs re-index if required.
So, if we talk about:
var: it contains cache,log report etc generated: contains class files pub/static : Static view files
For testing purpose, I have set
sudo chmod -R 444 . to
pub/static folder then ran indexer and it worked!
You can check more detail at: official document