infinity icon indicating copy to clipboard operation
infinity copied to clipboard

Write files to memory & disk or just memory

Open odilitime opened this issue 9 years ago • 0 comments

controlled by config file:

$config['cache']['odiliMagicBoards']=array( 'b'=>'Hybrid', );

If not defined will use file.

This is a reduced disk-IO version that does not write the HTML or JSON files to disk. It writes them to a redis-backed memory store which then can be quickly retrieved by a webserver without hitting the disk at all. See nginx's HttpRedis2Module module for more of what I mean.

If you don't have HttpRedis2Module, i've included a 404.php that you can use with an htaccess like:

RewriteEngine On RewriteRule ^[^/]+/$ %{REQUEST_URI}/../../odiliMagic.php [NC,L] RewriteRule ^[^/]+/[^/]+$ %{REQUEST_URI}/../../odiliMagic.php [NC,L] RewriteRule ^[^/]+/res/[^/]+$ %{REQUEST_URI}/../../odiliMagic.php [NC,L] This example assumes your URL includes one directory level, i.e. http://localhost/vichan/

odilitime avatar Feb 25 '16 07:02 odilitime