Plugin Directory

Changeset 1647080


Ignore:
Timestamp:
04/28/2017 03:25:35 AM (9 years ago)
Author:
redboxcdn
Message:

trank更新

Location:
purgebox/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • purgebox/trunk/README.md

    r1587089 r1647080  
    1 # PURGE BOX
    2 
    3 ## PURGE BOXについて
    4 
    5 PURGE BOXはレッドボックスが提供しているエッジキャッシュCDNでご利用頂ける、Wordpress専用パージプラグインです。CDN化したWordpressのキャッシュ更新を自動化します。
    6 
    7 ## ご利用方法
    8 
    9 - Redbox管理画面からAPIキー・グループ名を取得。
    10 - WordpressにPURGE BOXプラグインをインストール
    11 - PURGE BOX設定画面にAPIキーとグループ名を入力し保存
     1# purgebox
     2wordpress CDN plugin purgebox
    123
    134PurgeBox Wordpress Plugin
    145Copyright (C) 2017 RedBox inc.
    15 
    16 ------
    17 Include Fastly.com WordPress Plugin
    18 https://github.com/fastly/WordPress-Plugin/blob/master/lib/purge.php
    19 Copyright (C) 2011,2012,2013,2014,2015 Fastly.com
    206
    217This program is free software: you can redistribute it and/or modify
     
    3117You should have received a copy of the GNU General Public License
    3218along with this program.  If not, see <http://www.gnu.org/licenses/>.
    33  
  • purgebox/trunk/classes/class-purgebox-admin.php

    r1587083 r1647080  
    4141     */
    4242    public function admin_init() {
    43         if( !current_user_can('manage_options') ) {
    44             wp_die();
    45         }
    4643        $this->_register_setting('version');
    4744        $this->_register_setting('group');
  • purgebox/trunk/classes/class-purgebox-api.php

    r1587083 r1647080  
    8888     */
    8989    public function purge_all() {
    90         $url = '*';
     90        $url = '/*';
    9191        $home = parse_url( home_url() );
    92         if($home['path']) {
    93             $url = $home['path']. '/'. $url;
     92        if( !empty( $home['path'] ) ) {
     93            $url = rtrim($home['path'], '/'). $url;
    9494        }
    9595        $headers = $this->_get_base_header( $url );
  • purgebox/trunk/purgebox.php

    r1587097 r1647080  
    55Description: REDBOX CDN Purge Plugin.
    66Author: REDBOX
    7 Version: 1.1
     7Version: 1.2
    88Author URI: https://www.redbox.ne.jp
    99License: GPL3
Note: See TracChangeset for help on using the changeset viewer.