Topic: Playing with caching
Instead of posting the whole bit once more, I'll just link to the post I made at The Forum Insider: http://www.foruminsider.com/forums/inde … wtopic=183
You are not logged in. Please login or register.
PunBB Forums → Programming → Playing with caching
Instead of posting the whole bit once more, I'll just link to the post I made at The Forum Insider: http://www.foruminsider.com/forums/inde … wtopic=183
Nice stats
I'm trying to learn something here so I am trying to work out how this works. Is this correct.
Instead of having to fetch config information from the database all the time, the database is queried and the results are stored in a php file. MMCache is then used to compile the php file. This results in a speed increase because retrieving the information from a compiled php file is faster than running a database query(s).
Are there any security implications because you are allowing writing to php files? Not that it makes much difference because I bet a lot of people are running PunBB with CHMOD 777 anyway.
Instead of having to fetch config information from the database all the time, the database is queried and the results are stored in a php file. MMCache is then used to compile the php file. This results in a speed increase because retrieving the information from a compiled php file is faster than running a database query(s).
Almost correct. MMC doesn't compile the code, the Zend engine does. MMC just keeps the compiled code in memory (or on disk if it is out of memory) for PHP, so that the next time the script is to be executed, the Zend engine can fetch the already-compiled code directly from MMC's shared memory area.
Are there any security implications because you are allowing writing to php files? Not that it makes much difference because I bet a lot of people are running PunBB with CHMOD 777 anyway.
Nono that I can think of. If people are chmodding their config.php to 777, the security is b0rked anyway :D
PunBB Forums → Programming → Playing with caching
Powered by PunBB, supported by Informer Technologies, Inc.