Elgg/Elgg — pull request #5974 by hellekin (2013-08-28 15:08:23+00:00)
Title: Update CacheHandler.php

This line looks suspicious. Shouldn't the `$request_var` start with a `/` ?
If I have `/cache/0/default/css/admin`, I'd rather have
`$request_var = "/0/default/css/admin";`
than
`$request_var = "0/default/css/admin";`

I don't know how it works with Apache and others, but with Nginx, it simplifies things--read: it makes it work. Therefore:

`if (!preg_match('#^/?([0-9]+)/([^/]+)/(.+)$#', $request_var, $matches)) {`

(drop the `?` if that is not needed)