Magento – SQL install script doesn’t run when caches are turned on

extensionsMySQLsql

I created an SQL installation script for my extension and it ran just fine. I was developing the extension with the caches turned off. When I turn the caches on, the installation script doesn't get run, and I can't work out why.

I've tried clearing all of the Magento caches through the admin panel, flushing the cache storage, manually removing the contents of the magento/var/cache folder, clearing the APC cache, clearing the redis backend from the command line and restarting the PHP process, and nothing has worked. The only way I've managed to get the installation script to run is by turning the caches off.

Does anyone know why this would be happening? I'm using Magento v1.4.0.0 RC1.

Best Answer

Once an installer runs, if successful, it will create an entry in core_resource. If your don't have an entry in there, then either your installer isn't running or not completing properly.

I think the fact you said that table contains no entry is a bigger issue than the extension not being recognised with the cache on.

Also note, the ./var/cache directory should be empty when using Redis. If it isn't, you have mis-configured it.

First resolve the fact it isn't installing with the caches off.

Related Topic