summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'init.php')
-rw-r--r--init.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.php b/init.php
index b024288..402ebaa 100644
--- a/init.php
+++ b/init.php
@@ -17,7 +17,8 @@ class Nginx_Xaccel extends Plugin {
function hook_send_local_file($filename) {
- if (defined('NGINX_XACCEL_PREFIX') && NGINX_XACCEL_PREFIX) {
+ if (defined('NGINX_XACCEL_PREFIX') && NGINX_XACCEL_PREFIX &&
+ mb_strpos($filename, "cache/") === 0) {
$mimetype = mime_content_type($filename);