How exactly does this work or how do we know if it’s working? The reason I ask is because the table cscart_lock_keys has no activity at all.
First of all make sure that
lock_backend is set to
dummy. Lock is only takes place when cache is cleared and need to be generated. It prevents race condition for cache generation and works in the following cases:
- When several visitors open the same pages simultaneously.
- Different pages opened by several visitors simultaneously, use the same blocks.
- The compiled CSS file was not generated yet and several visitors opens any storefront page.
- The file with compiled JS scripts was not generated yet and several visitors opens any storefront page.
All those locks should not take significant time, so most possibly you will not be able to find any lock entries there.
Yes, I have it configured correctly. So basically I would not see any activity in the lock table unless I had a heavily visited site?
Yes, you are correct. When there are a plenty of visitors and you have recently cleared the cache of your installation.