Forum

WP Fastest Cache UrlToolkit

Febri
11 May 2015, 11:14
I'm using hiawatha as a webserver in my lowend vps. It's only consists of 2 wordpress with low visitor.
Currently i'm trying to lower the use of ram resource and found that using cache would have effect.

I use Hyper Cache but interest in WP Fastest Cache as it can generate static file, so that the one serving request is hiawatha, not php-fpm. But i have problem for the rewrite. After few trial and error, this is as far as i can get hiawatha UrlToolkit for WP Fastest Cache.

Config : Enable, Minify (HTML, JS, CSS), Combine (JS, CSS)
Apache rewrite :
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_|wp_woocommerce_session).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
RewriteCond /var/www/adi.pramono.info/wp-content/cache/all/$1/index.html -f
RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]

Hiawatha UrlToolkit :
UrlToolkit {
ToolkitID = wp
Match ^/(wp-.*) Return
Match /(.*) Rewrite /wp-content/cache/all/$1/index.html Continue
RequestURI isfile Return
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}

So far it's running well, but i'm very open for any revision or help.

Oh, and, thanks for this cool webserver mr. Hugo.

Hiawatha version: 9.12
Operating System: Debian 6
Hugo Leisink
11 May 2015, 11:45
To be honest, I have really no idea what this Apache rewrite mumbo jumbo is supposed to do.
This topic has been closed.