Plugin Directory

Changeset 1538143


Ignore:
Timestamp:
11/22/2016 08:41:01 AM (9 years ago)
Author:
hitoy
Message:

fix the bug plugin cache the robots.txt

Location:
super-static-cache/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • super-static-cache/trunk/readme.txt

    r1443825 r1538143  
    55Requires at least: 3.0.1
    66Tested up to: 4.5
    7 Stable tag: 3.3.2
     7Stable tag: 3.3.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2727
    2828== Upgrade Notice ==
     29= 3.3.3 =
     30* fix bug that cache robots.txt
     31
    2932= 3.3.2 =
    3033* bug fixed
  • super-static-cache/trunk/super-static-cache.php

    r1443825 r1538143  
    44Plugin URI: https://www.hitoy.org/super-static-cache-for-wordperss.html
    55Description: Super Static Cache is an efficient WordPress caching engine which provides three cache mode. It can reduce the pressure of the database significantly that makes your website faster than ever.
    6 Version: 3.3.2
     6Version: 3.3.3
    77Author: Hito
    88Author URI: https://www.hitoy.org/
     
    275275        //获取当前页面是否设置为缓存
    276276        private function is_page_support_cache(){
     277                //robots.txt不缓存
     278                if($this->wpuri == '/robots.txt'){
     279                    return false;
     280                }
    277281                //当前页面类型不缓存
    278282                if(in_array(getpagetype(),$this->nocachepage)){
Note: See TracChangeset for help on using the changeset viewer.