Changeset 1234480
- Timestamp:
- 08/31/2015 08:41:06 AM (11 years ago)
- Location:
- super-static-cache/trunk
- Files:
-
- 2 edited
-
options-advanced.php (modified) (1 diff)
-
super-static-cache.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
super-static-cache/trunk/options-advanced.php
r1234467 r1234480 28 28 <div><label><?php _e('Tag','super_static_cache');?></label><input type="checkbox" name="clearcache[]" value="tag"/></div> 29 29 <div><label><?php _e('All','super_static_cache');?></label><input type="checkbox" name="clearcache[]" value="all"/></div> 30 <div><label><?php _e('Purge Individual Posts','super_static_cache');?></label><input type="input" name="clearpostpagecache" placeholder="<?php _e('Please Enter the title or id of a post, separate with commas','super_static_cache');?>"/></div><br/>30 <div><label><?php _e('Purge Individual Posts','super_static_cache');?></label><input type="input" name="clearpostpagecache" title="<?php _e('Please Enter the title or id of a post, separate with commas','super_static_cache');?>"/></div><br/> 31 31 <input type="submit" class="button-primary" value="<?php _e('Purge »','super_static_cache')?>"> 32 32 </div> -
super-static-cache/trunk/super-static-cache.php
r1234467 r1234480 286 286 //如http://localhost/hello-wrold/ 287 287 //为了支持utf-8缓存格式,对url进行urldecode处理 288 public function delete_cache($url){ 288 public function delete_cache(string $url){ 289 $url=urldecode($url); 290 //如果传入URL为空,则返回 289 291 if(strlen($url) == 0) return false; 290 $url=urldecode($url); 292 //如果传入的URL不是本域名,则也返回 293 if(stripos($url,$this->siteurl) !== 0) return false; 294 291 295 $uri=substr($url,strlen($this->siteurl)); 292 296 if($this->cachemod == 'serverrewrite' || $this->cachemod == 'phprewrite'){
Note: See TracChangeset
for help on using the changeset viewer.