Frage

I am doing some experiments with APCu user data caching in PHP 5.5 through Zend Cache from ZF1, and Apache virtual hosts (with plain vanilla mod-php) and I am getting some unexpected results.

What happens is that data added to the cache from one virtual host become available for reading and writing to other virtual hosts.

I have added a cache prefix for each site and therefore resolved the immediate issue, but I would have expected more isolation between different virtual hosts. Is this the expected behavior? Is there any documentation on this?

War es hilfreich?

Lösung

As far as I know this has always been the case. There's no authentication with APC (as opposed to, say, MySQL), so no way to securely segregate the data. This is one reason why these tools aren't typically installed on shared hosting.

If you control the server and all the vhosts on it, you've already solved the problem by adding a cache prefix.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top