Changeset 1271429
- Timestamp:
- 10/23/2015 01:01:10 AM (10 years ago)
- File:
-
- 1 edited
-
super-static-cache/trunk/super-static-cache.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
super-static-cache/trunk/super-static-cache.php
r1269078 r1271429 338 338 //对缓存文件的权限进行更改 339 339 $relauri=substr($filename,strlen($this->wppath)-1); 340 preg_match("/^\/( [^?]+)?/i",$relauri,$match);341 $realname=!empty($match[ 1])?urldecode($match[1]):"";340 preg_match("/^\/(super-static-cache\/)?(.*)$/i",$relauri,$match); 341 $realname=!empty($match[2])?$match[2]:""; 342 342 $relapath=substr($realname,0,strpos($realname,'/')); 343 343 if($relapath==""){ 344 344 chmods($filename,0777,0666,false); 345 }else if($ relapath != "" && $this->cachemod == "direct"){345 }else if($this->cachemod == "direct"){ 346 346 chmods($this->wppath.$relapath,0777,0666,true); 347 }else if($ relapath != "" && $this->cachemod == "serverrewrite" || $this->cachemod == "phprewrite"){347 }else if($this->cachemod == "serverrewrite" || $this->cachemod == "phprewrite"){ 348 348 chmods($this->wppath."super-static-cache/".$relapath,0777,0666,true); 349 349 }
Note: See TracChangeset
for help on using the changeset viewer.