WordPress.org

Plugin Directory

Changeset 1638204


Ignore:
Timestamp:
04/15/17 13:51:51 (4 months ago)
Author:
m_uysl
Message:

deploy from git

Location:
powered-cache/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • powered-cache/trunk/includes/admin/class-powered-cache-admin-actions.php

    r1633170 r1638204  
    116116        } 
    117117 
    118         powered_cache_save_settings( $old_options, $new_options ); 
    119  
    120         $msg = __( 'Options updated', 'powered-cache' ); 
    121         Powered_Cache_Admin_Helper::set_flash_message( $msg ); 
     118        if ( powered_cache_save_settings( $old_options, $new_options ) ) { 
     119            $msg = __( 'Options updated', 'powered-cache' ); 
     120            Powered_Cache_Admin_Helper::set_flash_message( $msg ); 
     121 
     122            self::exit_with_redirect(); 
     123        } 
     124 
     125        // false message 
     126        $msg = __( 'Something went wrong, we could not save settings to file. Please make sure the configuration file writable.', 'powered-cache' ); 
     127        Powered_Cache_Admin_Helper::set_flash_message( $msg, 'error' ); 
    122128 
    123129        self::exit_with_redirect(); 
  • powered-cache/trunk/includes/dropins/page-cache.php

    r1633170 r1638204  
    102102 
    103103 
    104  
    105  
    106104// Deal with optional cache exceptions 
    107105if ( ! empty( $GLOBALS['powered_cache_options']['rejected_uri'] ) ) { 
     
    113111        } 
    114112 
    115         $exception = trim( $exception ); 
    116  
     113        // full url exception 
    117114        if ( preg_match( '#^https?://#', $exception ) ) { 
    118  
    119             $exception = rtrim( $exception, '/' ); 
    120             $url = rtrim( 'http' . ( isset( $_SERVER['HTTPS'] ) ? 's' : '' ) . '://' . "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}", '/' ); 
    121  
    122             if ( strtolower( $exception ) === strtolower( $url ) ) { 
    123                 // Exception match! 
    124                 return; 
    125             } 
    126  
    127         } elseif ( preg_match( '#^/#', $exception ) ) { 
    128             $path = $_SERVER['REQUEST_URI']; 
    129  
    130             if ( '/' !== $path ) { 
    131                 $path = rtrim( $path, '/' ); 
    132             } 
    133  
    134             if ( '/' !== $exception ) { 
    135                 $exception = rtrim( $exception, '/' ); 
    136             } 
    137  
    138             if ( strtolower( $exception ) === strtolower( $path ) ) { 
    139                 // Exception match! 
    140                 return; 
    141             } 
    142         } 
     115            $exception = parse_url( $exception, PHP_URL_PATH ); 
     116        } 
     117 
     118        if ( preg_match( '#^(' . $exception . ')$#', $_SERVER['REQUEST_URI'] ) ) { 
     119            return; 
     120        } 
     121 
    143122    } 
    144123} 
     
    273252function powered_cache_serve_cache() { 
    274253 
    275     if ( function_exists( 'gzencode' ) && $GLOBALS['powered_cache_options']['gzip_compression'] ) { 
    276         header( 'Content-Encoding: gzip' ); 
    277     } 
    278  
    279254    $file_name = powered_cache_index_file(); 
    280255 
     
    291266 
    292267    if ( @file_exists( $path ) && @is_readable( $path ) ) { 
     268 
     269        if ( function_exists( 'gzencode' ) && $GLOBALS['powered_cache_options']['gzip_compression'] ) { 
     270            header( 'Content-Encoding: gzip' ); 
     271        } 
     272 
    293273        @readfile( $path ); 
    294274 
  • powered-cache/trunk/includes/functions.php

    r1633170 r1638204  
    6565 * 
    6666 * @since 1.0 
     67 * 
    6768 * @param $old_settings array 
    6869 * @param $new_settings array 
     70 * 
     71 * @return bool depends on writing settings to file 
    6972 */ 
    7073function powered_cache_save_settings( $old_settings, $new_settings ) { 
    7174    global $powered_cache_options; 
    72     $settings  = array_merge( $old_settings, $new_settings ); 
     75    $settings = array_merge( $old_settings, $new_settings ); 
    7376 
    7477    $powered_cache_options = $settings; 
     
    9295 
    9396    unset( $settings['extension_settings'] ); 
    94     Powered_Cache_Config::factory()->save_to_file( $settings ); 
    95  
     97 
     98    return Powered_Cache_Config::factory()->save_to_file( $settings ); 
    9699} 
    97100 
  • powered-cache/trunk/languages/powered-cache-tr_TR.po

    r1633170 r1638204  
    33"Project-Id-Version: Powered Cache 1.0\n" 
    44"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/powered-cache\n" 
    5 "POT-Creation-Date: 2017-04-08 19:33:37+00:00\n" 
    6 "PO-Revision-Date: 2017-04-08 22:33+0300\n" 
     5"POT-Creation-Date: 2017-04-15 13:25:24+00:00\n" 
     6"PO-Revision-Date: 2017-04-15 16:28+0300\n" 
    77"Last-Translator: Mustafa Uysal <EMAIL@ADDRESS>\n" 
    88"Language-Team: TR LANGUAGE <LL@li.org>\n" 
     
    291291msgstr "Eklenti pasifleştirildi" 
    292292 
    293 #: includes/admin/class-powered-cache-admin-actions.php:120 
     293#: includes/admin/class-powered-cache-admin-actions.php:119 
    294294#: includes/admin/class-powered-cache-extension-admin-base.php:117 
    295295msgid "Options updated" 
    296 msgstr "Ayarlar guncellendi" 
    297  
    298 #: includes/admin/class-powered-cache-admin-actions.php:135 
     296msgstr "Ayarlar güncellendi" 
     297 
     298#: includes/admin/class-powered-cache-admin-actions.php:126 
     299msgid "" 
     300"Something went wrong, we could not save settings to file. Please make sure " 
     301"the configuration file writable." 
     302msgstr "" 
     303"Bir şeyler ters gitti ve ayarları dosyaya kaydedemedik. Lütfen yapılandırma " 
     304"dosyasının yazılabilir olduğundan emin olunuz." 
     305 
     306#: includes/admin/class-powered-cache-admin-actions.php:141 
    299307msgid "Cache flushed successfully" 
    300308msgstr "Önbellek başarılı bir şekilde temizlendi" 
    301309 
    302 #: includes/admin/class-powered-cache-admin-actions.php:154 
     310#: includes/admin/class-powered-cache-admin-actions.php:160 
    303311msgid "All settings cleaned!" 
    304312msgstr "Tüm ayarlar temizlendi!" 
     
    442450#: includes/admin/notices.php:146 
    443451#: premium/includes/class-powered-cache-license-page.php:189 
    444 #: premium/includes/premium-functions.php:417 
     452#: premium/includes/premium-functions.php:422 
    445453msgid "Powered Cache:" 
    446454msgstr "Powered Cache:" 
     
    798806msgstr "Obje önbelleği başarılı bir şekilde silindi!" 
    799807 
    800 #: includes/functions.php:193 
     808#: includes/functions.php:196 
    801809msgid "This feature available only premium users" 
    802810msgstr "Bu özellik yalnızca premium kullanıcılara özel" 
     
    899907msgstr "%s başarılı bir şekilde etkisizleştirildi" 
    900908 
    901 #: premium/bin/wp-cli.php:238 
     909#: premium/bin/wp-cli.php:237 
    902910msgid "" 
    903911"Nothing happened! If you need help, try to run this command: `wp help " 
     
    907915"powered-cache extension`" 
    908916 
    909 #: premium/bin/wp-cli.php:255 
     917#: premium/bin/wp-cli.php:254 
    910918msgid "" 
    911919"You need enable to Varnish extension of Powered Cache for executing this " 
     
    915923"gerekmektedir!" 
    916924 
    917 #: premium/bin/wp-cli.php:267 
     925#: premium/bin/wp-cli.php:266 
    918926msgid "Varnish purge request sent for: %s" 
    919927msgstr "Varnish temizleme isteği gönderildi: %s" 
     
    11311139"destek alabilirsiniz." 
    11321140 
    1133 #: premium/includes/premium-functions.php:418 
     1141#: premium/includes/premium-functions.php:423 
    11341142msgid "" 
    11351143"Please enter your license key at the <a href=\"%s\">license page</a>, or you " 
  • powered-cache/trunk/languages/powered-cache.pot

    r1633170 r1638204  
    55"Project-Id-Version: Powered Cache 1.0\n" 
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/powered-cache\n" 
    7 "POT-Creation-Date: 2017-04-08 19:33:37+00:00\n" 
     7"POT-Creation-Date: 2017-04-15 13:25:24+00:00\n" 
    88"MIME-Version: 1.0\n" 
    99"Content-Type: text/plain; charset=utf-8\n" 
     
    294294msgstr "" 
    295295 
    296 #: includes/admin/class-powered-cache-admin-actions.php:120 
     296#: includes/admin/class-powered-cache-admin-actions.php:119 
    297297#: includes/admin/class-powered-cache-extension-admin-base.php:117 
    298298msgid "Options updated" 
    299299msgstr "" 
    300300 
    301 #: includes/admin/class-powered-cache-admin-actions.php:135 
     301#: includes/admin/class-powered-cache-admin-actions.php:126 
     302msgid "" 
     303"Something went wrong, we could not save settings to file. Please make sure " 
     304"the configuration file writable." 
     305msgstr "" 
     306 
     307#: includes/admin/class-powered-cache-admin-actions.php:141 
    302308msgid "Cache flushed successfully" 
    303309msgstr "" 
    304310 
    305 #: includes/admin/class-powered-cache-admin-actions.php:154 
     311#: includes/admin/class-powered-cache-admin-actions.php:160 
    306312msgid "All settings cleaned!" 
    307313msgstr "" 
     
    437443#: includes/admin/notices.php:146 
    438444#: premium/includes/class-powered-cache-license-page.php:189 
    439 #: premium/includes/premium-functions.php:417 
     445#: premium/includes/premium-functions.php:422 
    440446msgid "Powered Cache:" 
    441447msgstr "" 
     
    778784msgstr "" 
    779785 
    780 #: includes/functions.php:193 
     786#: includes/functions.php:196 
    781787msgid "This feature available only premium users" 
    782788msgstr "" 
     
    876882msgstr "" 
    877883 
    878 #: premium/bin/wp-cli.php:238 
     884#: premium/bin/wp-cli.php:237 
    879885msgid "" 
    880886"Nothing happened! If you need help, try to run this command: `wp help " 
     
    882888msgstr "" 
    883889 
    884 #: premium/bin/wp-cli.php:255 
     890#: premium/bin/wp-cli.php:254 
    885891msgid "" 
    886892"You need enable to Varnish extension of Powered Cache for executing this " 
     
    888894msgstr "" 
    889895 
    890 #: premium/bin/wp-cli.php:267 
     896#: premium/bin/wp-cli.php:266 
    891897msgid "Varnish purge request sent for: %s" 
    892898msgstr "" 
     
    10871093msgstr "" 
    10881094 
    1089 #: premium/includes/premium-functions.php:418 
     1095#: premium/includes/premium-functions.php:423 
    10901096msgid "" 
    10911097"Please enter your license key at the <a href=\"%s\">license page</a>, or " 
  • powered-cache/trunk/powered-cache.php

    r1633170 r1638204  
    66 * Author:        SKOP, Mustafa Uysal 
    77 * Author URI:    http://skop.co/ 
    8  * Version:       1.0 
     8 * Version:       1.0.1 
    99 * Text Domain:   powered-cache 
    1010 * Domain Path:   /languages/ 
  • powered-cache/trunk/readme.txt

    r1633176 r1638204  
    55Requires at least:  4.1 
    66Tested up to:  4.7 
    7 Stable tag:  1.0 
     7Stable tag:  1.0.1 
    88License: GPLv2 (or later) 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    111111== Changelog == 
    112112 
    113 = 1.0 = 
    114  - Initial release. 
     113= 1.0.1 = 
     114 - gzip encoding buffer fix 
     115 - rejected_uri regex fix 
     116 - notice fix, (due to enabling page cache) 
    115117 
    116118Detailed changelog located in [changelog page](https://poweredcache.com/changelog) 
Note: See TracChangeset for help on using the changeset viewer.