Plugin Directory

Changeset 3121638


Ignore:
Timestamp:
07/18/2024 05:12:17 PM (19 months ago)
Author:
flywp
Message:

Update to version v1.3 from GitHub

Location:
flywp
Files:
8 added
10 deleted
26 edited
1 copied

Legend:

Unmodified
Added
Removed
  • flywp/tags/v1.3/flywp.php

    r3107616 r3121638  
    44 * Plugin URI: https://flywp.com
    55 * Description: Helper plugin for FlyWP
    6  * Version: 1.2
     6 * Version: 1.3
    77 * Author: FlyWP
    88 * Author URI: https://flywp.com/?utm_source=wporg&utm_medium=banner&utm_campaign=author-uri
     
    4242     * @var string
    4343     */
    44     public $version = '1.2';
     44    public $version = '1.3';
    4545
    4646    /**
     
    103103        }
    104104
    105         $this->router   = new FlyWP\Router();
    106         $this->rest     = new FlyWP\Api();
    107         $this->fastcgi  = new FlyWP\Fastcgi_Cache();
    108         $this->opcache  = new FlyWP\Opcache();
    109         $this->flyapi   = new FlyWP\FlyApi();
    110         $this->email    = new FlyWP\Email();
    111         $this->optimize = new FlyWP\Optimizations();
     105        $this->router    = new FlyWP\Router();
     106        $this->rest      = new FlyWP\Api();
     107        $this->fastcgi   = new FlyWP\Fastcgi_Cache();
     108        $this->opcache   = new FlyWP\Opcache();
     109        $this->flyapi    = new FlyWP\FlyApi();
     110        $this->email     = new FlyWP\Email();
     111        $this->optimize  = new FlyWP\Optimizations();
     112        $this->litespeed = new FlyWP\Litespeed();
    112113    }
    113114
     
    140141        return FLYWP_API_KEY;
    141142    }
    142 
    143     /**
    144      * Debugging helper.
    145      *
    146      * @param mixed $value
    147      * @param bool  $die
    148      *
    149      * @return void
    150      */
    151     public function debug( $value, $die = false ) {
    152         echo '<pre>';
    153         print_r( $value );
    154         echo '</pre>';
    155 
    156         if ( $die ) {
    157             die();
    158         }
    159     }
    160143}
    161144
  • flywp/tags/v1.3/includes/Admin.php

    r3107616 r3121638  
    88     * Admin page slug.
    99     */
    10     const PAGE_SLUG = 'flywp';
     10    public const PAGE_SLUG = 'flywp';
    1111
    1212    /**
     
    1515     * @var string
    1616     */
    17     const SCREEN_NAME = 'dashboard_page_flywp';
     17    public const SCREEN_NAME = 'dashboard_page_flywp';
    1818
    19     public $fastcgi = null;
     19    public $fastcgi   = null;
     20    public $litespeed = null;
    2021
    2122    /**
     
    2526        add_action( 'admin_menu', [ $this, 'register_admin_page' ] );
    2627
    27         $this->fastcgi = new Admin\Fastcgi_Cache();
     28        $this->fastcgi   = new Admin\Fastcgi_Cache();
     29        $this->litespeed = new Admin\Litespeed();
    2830
    2931        new Admin\Adminbar();
     
    101103        ];
    102104
     105        // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    103106        $active_tab     = isset( $_GET['tab'] ) && array_key_exists( $_GET['tab'], $tabs ) ? $_GET['tab'] : 'cache';
    104107        $site_info      = $this->fetch_site_info();
  • flywp/tags/v1.3/includes/Api.php

    r3032189 r3121638  
    2626        new Api\Themes();
    2727        new Api\Updates();
    28         new Api\Fastcgi_Cache();
     28        new Api\Cache();
    2929        new Api\Health();
    3030    }
     
    5353        }
    5454
    55         $auth_header = $_SERVER['HTTP_AUTHORIZATION'];
     55        $auth_header = wp_unslash( $_SERVER['HTTP_AUTHORIZATION'] );
    5656
    5757        if ( ! preg_match( '/Bearer\s(\S+)/', $auth_header, $matches ) ) {
  • flywp/tags/v1.3/includes/FlyApi.php

    r3007756 r3121638  
    2121     * @return array|false
    2222     */
    23     public function cache_toggle( $action = 'enable' ) {
     23    public function cache_toggle( $action = 'enable', $type = 'fastcgi' ) {
    2424        return $this->post(
    2525            '/cache-toggle',
    2626            [
    2727                'action' => $action,
     28                'type'   => $type,
    2829            ]
    2930        );
  • flywp/tags/v1.3/includes/Helper.php

    r2925476 r3121638  
    2525        die();
    2626    }
     27
     28    /**
     29     * Check if server is running Nginx.
     30     *
     31     * @return bool
     32     */
     33    public static function is_nginx() {
     34        return isset( $_SERVER['SERVER_SOFTWARE'] ) && false !== strpos( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ), 'nginx' );
     35    }
     36
     37    /**
     38     * Check if server is running LiteSpeed.
     39     *
     40     * @return bool
     41     */
     42    public static function is_litespeed() {
     43        return isset( $_SERVER['SERVER_SOFTWARE'] ) && false !== strpos( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ), 'LiteSpeed' );
     44    }
    2745}
  • flywp/tags/v1.3/languages/flywp.pot

    r3107616 r3121638  
    22msgid ""
    33msgstr ""
    4 "Project-Id-Version: FlyWP 1.2\n"
     4"Project-Id-Version: FlyWP 1.3\n"
    55"Report-Msgid-Bugs-To: https://github.com/flywp/flywp-helper/issues\n"
    66"Last-Translator: [email protected]\n"
     
    99"Content-Type: text/plain; charset=UTF-8\n"
    1010"Content-Transfer-Encoding: 8bit\n"
    11 "POT-Creation-Date: 2024-06-25T16:47:30+00:00\n"
     11"POT-Creation-Date: 2024-07-18T16:21:08+00:00\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"X-Generator: WP-CLI 2.10.0\n"
     
    1717#. Author of the plugin
    1818#: flywp.php
    19 #: includes/Admin.php:41
    20 #: includes/Admin.php:42
     19#: includes/Admin.php:43
     20#: includes/Admin.php:44
    2121#: includes/Admin/Adminbar.php:32
    2222msgid "FlyWP"
     
    3838msgstr ""
    3939
    40 #: flywp.php:120
     40#: flywp.php:121
    4141msgid "Missing FlyWP API key, plugin requires an API key."
    4242msgstr ""
    4343
    44 #: includes/Admin.php:98
     44#: includes/Admin.php:100
    4545msgid "Caching"
    4646msgstr ""
    4747
    48 #: includes/Admin.php:99
     48#: includes/Admin.php:101
    4949msgid "Email"
    5050msgstr ""
    5151
    52 #: includes/Admin.php:100
     52#: includes/Admin.php:102
    5353msgid "Optimizations"
    5454msgstr ""
     
    6868#: includes/Admin/Adminbar.php:75
    6969#: includes/Admin/Plugins.php:25
     70#: includes/LiteSpeed.php:69
    7071#: views/page-cache.php:70
    7172msgid "Settings"
     
    256257msgstr ""
    257258
    258 #: views/admin.php:10
     259#: includes/LiteSpeed.php:77
     260msgid "Activate Plugin"
     261msgstr ""
     262
     263#: includes/LiteSpeed.php:86
     264msgid "Install Plugin"
     265msgstr ""
     266
     267#: views/admin.php:15
    259268msgid "FlyWP Dashboard"
    260269msgstr ""
     
    325334msgstr ""
    326335
    327 #: views/op-cache.php:8
    328 msgid "PHP OPcache has been cleared."
    329 msgstr ""
    330 
    331 #: views/op-cache.php:20
    332 msgid "PHP OPcache"
    333 msgstr ""
    334 
     336#: views/litespeed.php:6
     337#: views/page-cache.php:8
     338msgid "Page Caching has been enabled."
     339msgstr ""
     340
     341#: views/litespeed.php:7
     342#: views/page-cache.php:9
     343msgid "Page Caching has been disabled."
     344msgstr ""
     345
     346#: views/litespeed.php:19
     347msgid "LiteSpeed Cache"
     348msgstr ""
     349
     350#: views/litespeed.php:25
    335351#: views/op-cache.php:26
    336352#: views/optimizations.php:11
     
    339355msgstr ""
    340356
     357#: views/litespeed.php:31
    341358#: views/op-cache.php:32
    342359#: views/optimizations.php:17
     
    345362msgstr ""
    346363
    347 #: views/op-cache.php:44
    348 msgid "OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request."
    349 msgstr ""
    350 
    351 #: views/op-cache.php:51
    352 msgid "Hit Rate"
    353 msgstr ""
    354 
    355 #: views/op-cache.php:56
    356 msgid "Cached Scripts"
    357 msgstr ""
    358 
    359 #: views/op-cache.php:61
    360 msgid "Memory"
    361 msgstr ""
    362 
    363 #: views/op-cache.php:66
    364 msgid "Keys"
    365 msgstr ""
    366 
    367 #: views/op-cache.php:71
    368 msgid "Engine"
    369 msgstr ""
    370 
     364#: views/litespeed.php:44
     365msgid "LiteSpeed Cache is a very fast page caching system that boosts up your website page load speed."
     366msgstr ""
     367
     368#: views/litespeed.php:49
    371369#: views/op-cache.php:78
    372370#: views/page-cache.php:51
     
    374372msgstr ""
    375373
     374#: views/litespeed.php:58
     375#: views/page-cache.php:59
     376msgid "Disable"
     377msgstr ""
     378
     379#: views/litespeed.php:62
     380#: views/page-cache.php:64
     381msgid "Enable Cache"
     382msgstr ""
     383
     384#: views/op-cache.php:8
     385msgid "PHP OPcache has been cleared."
     386msgstr ""
     387
     388#: views/op-cache.php:20
     389msgid "PHP OPcache"
     390msgstr ""
     391
     392#: views/op-cache.php:44
     393msgid "OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request."
     394msgstr ""
     395
     396#: views/op-cache.php:51
     397msgid "Hit Rate"
     398msgstr ""
     399
     400#: views/op-cache.php:56
     401msgid "Cached Scripts"
     402msgstr ""
     403
     404#: views/op-cache.php:61
     405msgid "Memory"
     406msgstr ""
     407
     408#: views/op-cache.php:66
     409msgid "Keys"
     410msgstr ""
     411
     412#: views/op-cache.php:71
     413msgid "Engine"
     414msgstr ""
     415
    376416#: views/optimizations.php:5
    377417msgid "WordPress Optimizations"
     
    398438msgstr ""
    399439
    400 #: views/page-cache.php:8
    401 msgid "Page Caching has been enabled."
    402 msgstr ""
    403 
    404 #: views/page-cache.php:9
    405 msgid "Page Caching has been disabled."
    406 msgstr ""
    407 
    408440#: views/page-cache.php:21
    409441msgid "Page Cache"
     
    414446msgstr ""
    415447
    416 #: views/page-cache.php:59
    417 msgid "Disable"
    418 msgstr ""
    419 
    420 #: views/page-cache.php:64
    421 msgid "Enable Cache"
    422 msgstr ""
    423 
    424448#: views/page-cache.php:76
    425449msgid "Homepage Settings"
  • flywp/tags/v1.3/readme.txt

    r3107616 r3121638  
    55Tested up to: 6.5
    66Requires PHP: 7.4
    7 Stable tag: 1.2
     7Stable tag: 1.3
    88Requires PHP: 7.1 or higher
    99License: GPLv2 or later
     
    5454
    5555== Changelog ==
     56
     57= v1.3 (18 July, 2024) =
     58
     59 * **New:** Added support for OpenLiteSpeed.
    5660
    5761= v1.2 (25 June, 2024) =
  • flywp/tags/v1.3/vendor/composer/autoload_classmap.php

    r3107616 r3121638  
    1212    'FlyWP\\Admin\\Email' => $baseDir . '/includes/Admin/Email.php',
    1313    'FlyWP\\Admin\\Fastcgi_Cache' => $baseDir . '/includes/Admin/Fastcgi_Cache.php',
     14    'FlyWP\\Admin\\Litespeed' => $baseDir . '/includes/Admin/Litespeed.php',
    1415    'FlyWP\\Admin\\Opcache' => $baseDir . '/includes/Admin/Opcache.php',
    1516    'FlyWP\\Admin\\Optimizations' => $baseDir . '/includes/Admin/Optimizations.php',
    1617    'FlyWP\\Admin\\Plugins' => $baseDir . '/includes/Admin/Plugins.php',
    1718    'FlyWP\\Api' => $baseDir . '/includes/Api.php',
    18     'FlyWP\\Api\\Fastcgi_Cache' => $baseDir . '/includes/Api/Fastcgi_Cache.php',
     19    'FlyWP\\Api\\Cache' => $baseDir . '/includes/Api/Cache.php',
    1920    'FlyWP\\Api\\Health' => $baseDir . '/includes/Api/Health.php',
    2021    'FlyWP\\Api\\Ping' => $baseDir . '/includes/Api/Ping.php',
  • flywp/tags/v1.3/vendor/composer/autoload_static.php

    r3107616 r3121638  
    3535        'FlyWP\\Admin\\Email' => __DIR__ . '/../..' . '/includes/Admin/Email.php',
    3636        'FlyWP\\Admin\\Fastcgi_Cache' => __DIR__ . '/../..' . '/includes/Admin/Fastcgi_Cache.php',
     37        'FlyWP\\Admin\\Litespeed' => __DIR__ . '/../..' . '/includes/Admin/Litespeed.php',
    3738        'FlyWP\\Admin\\Opcache' => __DIR__ . '/../..' . '/includes/Admin/Opcache.php',
    3839        'FlyWP\\Admin\\Optimizations' => __DIR__ . '/../..' . '/includes/Admin/Optimizations.php',
    3940        'FlyWP\\Admin\\Plugins' => __DIR__ . '/../..' . '/includes/Admin/Plugins.php',
    4041        'FlyWP\\Api' => __DIR__ . '/../..' . '/includes/Api.php',
    41         'FlyWP\\Api\\Fastcgi_Cache' => __DIR__ . '/../..' . '/includes/Api/Fastcgi_Cache.php',
     42        'FlyWP\\Api\\Cache' => __DIR__ . '/../..' . '/includes/Api/Cache.php',
    4243        'FlyWP\\Api\\Health' => __DIR__ . '/../..' . '/includes/Api/Health.php',
    4344        'FlyWP\\Api\\Ping' => __DIR__ . '/../..' . '/includes/Api/Ping.php',
  • flywp/tags/v1.3/vendor/composer/installed.php

    r3107616 r3121638  
    22    'root' => array(
    33        'name' => 'flywp/flywp',
    4         'pretty_version' => '1.2',
    5         'version' => '1.2.0.0',
     4        'pretty_version' => '1.3',
     5        'version' => '1.3.0.0',
    66        'reference' => null,
    77        'type' => 'wordpress-plugin',
     
    1212    'versions' => array(
    1313        'flywp/flywp' => array(
    14             'pretty_version' => '1.2',
    15             'version' => '1.2.0.0',
     14            'pretty_version' => '1.3',
     15            'version' => '1.3.0.0',
    1616            'reference' => null,
    1717            'type' => 'wordpress-plugin',
  • flywp/tags/v1.3/views/admin.php

    r3107616 r3121638  
     1<?php
     2use FlyWP\Helper;
     3
     4?>
     5
    16<div class="flywp-settings" id="flywp-settings">
    27    <div class="fw-mb-8 fw-bg-white fw-border-b fw-border-solid fw-border-gray-200">
     
    1419            <div class="fw-flex -fw-mb-px fw-gap-2">
    1520                <?php foreach ( $tabs as $key => $label ) { ?>
    16                     <a href="<?php echo esc_url( add_query_arg( [
    17                         'tab' => $key,
    18                     ], $this->page_url() ) ); ?>" class="fw-block fw-px-4 fw-py-3 fw-text-sm -m fw-text-gray-800 fw-no-underline fw-outline-none focus:fw-outline-none <?php echo $key === $active_tab ? 'fw-border-b-2 fw-border-indigo-500 fw-font-semibold' : ''; ?>"><?php echo $label; ?></a>
     21                    <a href="<?php echo esc_url( add_query_arg( [ 'tab' => $key ], $this->page_url() ) ); ?>" class="fw-block fw-px-4 fw-py-3 fw-text-sm -m fw-text-gray-800 fw-no-underline fw-outline-none focus:fw-outline-none <?php echo $key === $active_tab ? 'fw-border-b-2 fw-border-indigo-500 fw-font-semibold' : ''; ?>"><?php echo $label; ?></a>
    1922                <?php } ?>
    2023            </div>
     
    2730
    2831        if ( $active_tab === 'cache' ) {
    29             require __DIR__ . '/page-cache.php';
     32            if ( Helper::is_nginx() ) {
     33                require __DIR__ . '/page-cache.php';
     34            } elseif ( Helper::is_litespeed() ) {
     35                require __DIR__ . '/litespeed.php';
     36            }
     37
    3038            require __DIR__ . '/op-cache.php';
    3139        } elseif ( $active_tab === 'email' ) {
  • flywp/tags/v1.3/views/op-cache.php

    r3107616 r3121638  
    99];
    1010
    11 if ( isset( $_GET['fly-notice'] ) && isset( $cache_messages[$_GET['fly-notice']] ) ) {
    12     $notice = $cache_messages[$_GET['fly-notice']];
     11if ( isset( $_GET['fly-notice'] ) && isset( $cache_messages[ $_GET['fly-notice'] ] ) ) {
     12    $notice = $cache_messages[ $_GET['fly-notice'] ];
    1313}
    1414?>
  • flywp/tags/v1.3/views/page-cache.php

    r3032189 r3121638  
    1010];
    1111
    12 if ( isset( $_GET['fly-notice'] ) && isset( $cache_messages[$_GET['fly-notice']] ) ) {
    13     $notice = $cache_messages[$_GET['fly-notice']];
     12if ( isset( $_GET['fly-notice'] ) && isset( $cache_messages[ $_GET['fly-notice'] ] ) ) {
     13    $notice = $cache_messages[ $_GET['fly-notice'] ];
    1414}
    1515?>
     
    3737
    3838        <?php if ( $notice ) { ?>
    39             <div class="fw-bg-green-200 fw-text-green-800 fw-px-4 fw-py-1" id="fly-page-cache-notice">
     39            <div class="fw-bg-green-200 fw-text-green-800 fw-px-4 fw-py-1 fly-form-notice">
    4040                <p><?php echo esc_html( $notice ); ?></p>
    4141            </div>
  • flywp/trunk/flywp.php

    r3107616 r3121638  
    44 * Plugin URI: https://flywp.com
    55 * Description: Helper plugin for FlyWP
    6  * Version: 1.2
     6 * Version: 1.3
    77 * Author: FlyWP
    88 * Author URI: https://flywp.com/?utm_source=wporg&utm_medium=banner&utm_campaign=author-uri
     
    4242     * @var string
    4343     */
    44     public $version = '1.2';
     44    public $version = '1.3';
    4545
    4646    /**
     
    103103        }
    104104
    105         $this->router   = new FlyWP\Router();
    106         $this->rest     = new FlyWP\Api();
    107         $this->fastcgi  = new FlyWP\Fastcgi_Cache();
    108         $this->opcache  = new FlyWP\Opcache();
    109         $this->flyapi   = new FlyWP\FlyApi();
    110         $this->email    = new FlyWP\Email();
    111         $this->optimize = new FlyWP\Optimizations();
     105        $this->router    = new FlyWP\Router();
     106        $this->rest      = new FlyWP\Api();
     107        $this->fastcgi   = new FlyWP\Fastcgi_Cache();
     108        $this->opcache   = new FlyWP\Opcache();
     109        $this->flyapi    = new FlyWP\FlyApi();
     110        $this->email     = new FlyWP\Email();
     111        $this->optimize  = new FlyWP\Optimizations();
     112        $this->litespeed = new FlyWP\Litespeed();
    112113    }
    113114
     
    140141        return FLYWP_API_KEY;
    141142    }
    142 
    143     /**
    144      * Debugging helper.
    145      *
    146      * @param mixed $value
    147      * @param bool  $die
    148      *
    149      * @return void
    150      */
    151     public function debug( $value, $die = false ) {
    152         echo '<pre>';
    153         print_r( $value );
    154         echo '</pre>';
    155 
    156         if ( $die ) {
    157             die();
    158         }
    159     }
    160143}
    161144
  • flywp/trunk/includes/Admin.php

    r3107616 r3121638  
    88     * Admin page slug.
    99     */
    10     const PAGE_SLUG = 'flywp';
     10    public const PAGE_SLUG = 'flywp';
    1111
    1212    /**
     
    1515     * @var string
    1616     */
    17     const SCREEN_NAME = 'dashboard_page_flywp';
     17    public const SCREEN_NAME = 'dashboard_page_flywp';
    1818
    19     public $fastcgi = null;
     19    public $fastcgi   = null;
     20    public $litespeed = null;
    2021
    2122    /**
     
    2526        add_action( 'admin_menu', [ $this, 'register_admin_page' ] );
    2627
    27         $this->fastcgi = new Admin\Fastcgi_Cache();
     28        $this->fastcgi   = new Admin\Fastcgi_Cache();
     29        $this->litespeed = new Admin\Litespeed();
    2830
    2931        new Admin\Adminbar();
     
    101103        ];
    102104
     105        // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    103106        $active_tab     = isset( $_GET['tab'] ) && array_key_exists( $_GET['tab'], $tabs ) ? $_GET['tab'] : 'cache';
    104107        $site_info      = $this->fetch_site_info();
  • flywp/trunk/includes/Api.php

    r3032189 r3121638  
    2626        new Api\Themes();
    2727        new Api\Updates();
    28         new Api\Fastcgi_Cache();
     28        new Api\Cache();
    2929        new Api\Health();
    3030    }
     
    5353        }
    5454
    55         $auth_header = $_SERVER['HTTP_AUTHORIZATION'];
     55        $auth_header = wp_unslash( $_SERVER['HTTP_AUTHORIZATION'] );
    5656
    5757        if ( ! preg_match( '/Bearer\s(\S+)/', $auth_header, $matches ) ) {
  • flywp/trunk/includes/FlyApi.php

    r3007756 r3121638  
    2121     * @return array|false
    2222     */
    23     public function cache_toggle( $action = 'enable' ) {
     23    public function cache_toggle( $action = 'enable', $type = 'fastcgi' ) {
    2424        return $this->post(
    2525            '/cache-toggle',
    2626            [
    2727                'action' => $action,
     28                'type'   => $type,
    2829            ]
    2930        );
  • flywp/trunk/includes/Helper.php

    r2925476 r3121638  
    2525        die();
    2626    }
     27
     28    /**
     29     * Check if server is running Nginx.
     30     *
     31     * @return bool
     32     */
     33    public static function is_nginx() {
     34        return isset( $_SERVER['SERVER_SOFTWARE'] ) && false !== strpos( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ), 'nginx' );
     35    }
     36
     37    /**
     38     * Check if server is running LiteSpeed.
     39     *
     40     * @return bool
     41     */
     42    public static function is_litespeed() {
     43        return isset( $_SERVER['SERVER_SOFTWARE'] ) && false !== strpos( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ), 'LiteSpeed' );
     44    }
    2745}
  • flywp/trunk/languages/flywp.pot

    r3107616 r3121638  
    22msgid ""
    33msgstr ""
    4 "Project-Id-Version: FlyWP 1.2\n"
     4"Project-Id-Version: FlyWP 1.3\n"
    55"Report-Msgid-Bugs-To: https://github.com/flywp/flywp-helper/issues\n"
    66"Last-Translator: [email protected]\n"
     
    99"Content-Type: text/plain; charset=UTF-8\n"
    1010"Content-Transfer-Encoding: 8bit\n"
    11 "POT-Creation-Date: 2024-06-25T16:47:30+00:00\n"
     11"POT-Creation-Date: 2024-07-18T16:21:08+00:00\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"X-Generator: WP-CLI 2.10.0\n"
     
    1717#. Author of the plugin
    1818#: flywp.php
    19 #: includes/Admin.php:41
    20 #: includes/Admin.php:42
     19#: includes/Admin.php:43
     20#: includes/Admin.php:44
    2121#: includes/Admin/Adminbar.php:32
    2222msgid "FlyWP"
     
    3838msgstr ""
    3939
    40 #: flywp.php:120
     40#: flywp.php:121
    4141msgid "Missing FlyWP API key, plugin requires an API key."
    4242msgstr ""
    4343
    44 #: includes/Admin.php:98
     44#: includes/Admin.php:100
    4545msgid "Caching"
    4646msgstr ""
    4747
    48 #: includes/Admin.php:99
     48#: includes/Admin.php:101
    4949msgid "Email"
    5050msgstr ""
    5151
    52 #: includes/Admin.php:100
     52#: includes/Admin.php:102
    5353msgid "Optimizations"
    5454msgstr ""
     
    6868#: includes/Admin/Adminbar.php:75
    6969#: includes/Admin/Plugins.php:25
     70#: includes/LiteSpeed.php:69
    7071#: views/page-cache.php:70
    7172msgid "Settings"
     
    256257msgstr ""
    257258
    258 #: views/admin.php:10
     259#: includes/LiteSpeed.php:77
     260msgid "Activate Plugin"
     261msgstr ""
     262
     263#: includes/LiteSpeed.php:86
     264msgid "Install Plugin"
     265msgstr ""
     266
     267#: views/admin.php:15
    259268msgid "FlyWP Dashboard"
    260269msgstr ""
     
    325334msgstr ""
    326335
    327 #: views/op-cache.php:8
    328 msgid "PHP OPcache has been cleared."
    329 msgstr ""
    330 
    331 #: views/op-cache.php:20
    332 msgid "PHP OPcache"
    333 msgstr ""
    334 
     336#: views/litespeed.php:6
     337#: views/page-cache.php:8
     338msgid "Page Caching has been enabled."
     339msgstr ""
     340
     341#: views/litespeed.php:7
     342#: views/page-cache.php:9
     343msgid "Page Caching has been disabled."
     344msgstr ""
     345
     346#: views/litespeed.php:19
     347msgid "LiteSpeed Cache"
     348msgstr ""
     349
     350#: views/litespeed.php:25
    335351#: views/op-cache.php:26
    336352#: views/optimizations.php:11
     
    339355msgstr ""
    340356
     357#: views/litespeed.php:31
    341358#: views/op-cache.php:32
    342359#: views/optimizations.php:17
     
    345362msgstr ""
    346363
    347 #: views/op-cache.php:44
    348 msgid "OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request."
    349 msgstr ""
    350 
    351 #: views/op-cache.php:51
    352 msgid "Hit Rate"
    353 msgstr ""
    354 
    355 #: views/op-cache.php:56
    356 msgid "Cached Scripts"
    357 msgstr ""
    358 
    359 #: views/op-cache.php:61
    360 msgid "Memory"
    361 msgstr ""
    362 
    363 #: views/op-cache.php:66
    364 msgid "Keys"
    365 msgstr ""
    366 
    367 #: views/op-cache.php:71
    368 msgid "Engine"
    369 msgstr ""
    370 
     364#: views/litespeed.php:44
     365msgid "LiteSpeed Cache is a very fast page caching system that boosts up your website page load speed."
     366msgstr ""
     367
     368#: views/litespeed.php:49
    371369#: views/op-cache.php:78
    372370#: views/page-cache.php:51
     
    374372msgstr ""
    375373
     374#: views/litespeed.php:58
     375#: views/page-cache.php:59
     376msgid "Disable"
     377msgstr ""
     378
     379#: views/litespeed.php:62
     380#: views/page-cache.php:64
     381msgid "Enable Cache"
     382msgstr ""
     383
     384#: views/op-cache.php:8
     385msgid "PHP OPcache has been cleared."
     386msgstr ""
     387
     388#: views/op-cache.php:20
     389msgid "PHP OPcache"
     390msgstr ""
     391
     392#: views/op-cache.php:44
     393msgid "OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request."
     394msgstr ""
     395
     396#: views/op-cache.php:51
     397msgid "Hit Rate"
     398msgstr ""
     399
     400#: views/op-cache.php:56
     401msgid "Cached Scripts"
     402msgstr ""
     403
     404#: views/op-cache.php:61
     405msgid "Memory"
     406msgstr ""
     407
     408#: views/op-cache.php:66
     409msgid "Keys"
     410msgstr ""
     411
     412#: views/op-cache.php:71
     413msgid "Engine"
     414msgstr ""
     415
    376416#: views/optimizations.php:5
    377417msgid "WordPress Optimizations"
     
    398438msgstr ""
    399439
    400 #: views/page-cache.php:8
    401 msgid "Page Caching has been enabled."
    402 msgstr ""
    403 
    404 #: views/page-cache.php:9
    405 msgid "Page Caching has been disabled."
    406 msgstr ""
    407 
    408440#: views/page-cache.php:21
    409441msgid "Page Cache"
     
    414446msgstr ""
    415447
    416 #: views/page-cache.php:59
    417 msgid "Disable"
    418 msgstr ""
    419 
    420 #: views/page-cache.php:64
    421 msgid "Enable Cache"
    422 msgstr ""
    423 
    424448#: views/page-cache.php:76
    425449msgid "Homepage Settings"
  • flywp/trunk/readme.txt

    r3107616 r3121638  
    55Tested up to: 6.5
    66Requires PHP: 7.4
    7 Stable tag: 1.2
     7Stable tag: 1.3
    88Requires PHP: 7.1 or higher
    99License: GPLv2 or later
     
    5454
    5555== Changelog ==
     56
     57= v1.3 (18 July, 2024) =
     58
     59 * **New:** Added support for OpenLiteSpeed.
    5660
    5761= v1.2 (25 June, 2024) =
  • flywp/trunk/vendor/composer/autoload_classmap.php

    r3107616 r3121638  
    1212    'FlyWP\\Admin\\Email' => $baseDir . '/includes/Admin/Email.php',
    1313    'FlyWP\\Admin\\Fastcgi_Cache' => $baseDir . '/includes/Admin/Fastcgi_Cache.php',
     14    'FlyWP\\Admin\\Litespeed' => $baseDir . '/includes/Admin/Litespeed.php',
    1415    'FlyWP\\Admin\\Opcache' => $baseDir . '/includes/Admin/Opcache.php',
    1516    'FlyWP\\Admin\\Optimizations' => $baseDir . '/includes/Admin/Optimizations.php',
    1617    'FlyWP\\Admin\\Plugins' => $baseDir . '/includes/Admin/Plugins.php',
    1718    'FlyWP\\Api' => $baseDir . '/includes/Api.php',
    18     'FlyWP\\Api\\Fastcgi_Cache' => $baseDir . '/includes/Api/Fastcgi_Cache.php',
     19    'FlyWP\\Api\\Cache' => $baseDir . '/includes/Api/Cache.php',
    1920    'FlyWP\\Api\\Health' => $baseDir . '/includes/Api/Health.php',
    2021    'FlyWP\\Api\\Ping' => $baseDir . '/includes/Api/Ping.php',
  • flywp/trunk/vendor/composer/autoload_static.php

    r3107616 r3121638  
    3535        'FlyWP\\Admin\\Email' => __DIR__ . '/../..' . '/includes/Admin/Email.php',
    3636        'FlyWP\\Admin\\Fastcgi_Cache' => __DIR__ . '/../..' . '/includes/Admin/Fastcgi_Cache.php',
     37        'FlyWP\\Admin\\Litespeed' => __DIR__ . '/../..' . '/includes/Admin/Litespeed.php',
    3738        'FlyWP\\Admin\\Opcache' => __DIR__ . '/../..' . '/includes/Admin/Opcache.php',
    3839        'FlyWP\\Admin\\Optimizations' => __DIR__ . '/../..' . '/includes/Admin/Optimizations.php',
    3940        'FlyWP\\Admin\\Plugins' => __DIR__ . '/../..' . '/includes/Admin/Plugins.php',
    4041        'FlyWP\\Api' => __DIR__ . '/../..' . '/includes/Api.php',
    41         'FlyWP\\Api\\Fastcgi_Cache' => __DIR__ . '/../..' . '/includes/Api/Fastcgi_Cache.php',
     42        'FlyWP\\Api\\Cache' => __DIR__ . '/../..' . '/includes/Api/Cache.php',
    4243        'FlyWP\\Api\\Health' => __DIR__ . '/../..' . '/includes/Api/Health.php',
    4344        'FlyWP\\Api\\Ping' => __DIR__ . '/../..' . '/includes/Api/Ping.php',
  • flywp/trunk/vendor/composer/installed.php

    r3107616 r3121638  
    22    'root' => array(
    33        'name' => 'flywp/flywp',
    4         'pretty_version' => '1.2',
    5         'version' => '1.2.0.0',
     4        'pretty_version' => '1.3',
     5        'version' => '1.3.0.0',
    66        'reference' => null,
    77        'type' => 'wordpress-plugin',
     
    1212    'versions' => array(
    1313        'flywp/flywp' => array(
    14             'pretty_version' => '1.2',
    15             'version' => '1.2.0.0',
     14            'pretty_version' => '1.3',
     15            'version' => '1.3.0.0',
    1616            'reference' => null,
    1717            'type' => 'wordpress-plugin',
  • flywp/trunk/views/admin.php

    r3107616 r3121638  
     1<?php
     2use FlyWP\Helper;
     3
     4?>
     5
    16<div class="flywp-settings" id="flywp-settings">
    27    <div class="fw-mb-8 fw-bg-white fw-border-b fw-border-solid fw-border-gray-200">
     
    1419            <div class="fw-flex -fw-mb-px fw-gap-2">
    1520                <?php foreach ( $tabs as $key => $label ) { ?>
    16                     <a href="<?php echo esc_url( add_query_arg( [
    17                         'tab' => $key,
    18                     ], $this->page_url() ) ); ?>" class="fw-block fw-px-4 fw-py-3 fw-text-sm -m fw-text-gray-800 fw-no-underline fw-outline-none focus:fw-outline-none <?php echo $key === $active_tab ? 'fw-border-b-2 fw-border-indigo-500 fw-font-semibold' : ''; ?>"><?php echo $label; ?></a>
     21                    <a href="<?php echo esc_url( add_query_arg( [ 'tab' => $key ], $this->page_url() ) ); ?>" class="fw-block fw-px-4 fw-py-3 fw-text-sm -m fw-text-gray-800 fw-no-underline fw-outline-none focus:fw-outline-none <?php echo $key === $active_tab ? 'fw-border-b-2 fw-border-indigo-500 fw-font-semibold' : ''; ?>"><?php echo $label; ?></a>
    1922                <?php } ?>
    2023            </div>
     
    2730
    2831        if ( $active_tab === 'cache' ) {
    29             require __DIR__ . '/page-cache.php';
     32            if ( Helper::is_nginx() ) {
     33                require __DIR__ . '/page-cache.php';
     34            } elseif ( Helper::is_litespeed() ) {
     35                require __DIR__ . '/litespeed.php';
     36            }
     37
    3038            require __DIR__ . '/op-cache.php';
    3139        } elseif ( $active_tab === 'email' ) {
  • flywp/trunk/views/op-cache.php

    r3107616 r3121638  
    99];
    1010
    11 if ( isset( $_GET['fly-notice'] ) && isset( $cache_messages[$_GET['fly-notice']] ) ) {
    12     $notice = $cache_messages[$_GET['fly-notice']];
     11if ( isset( $_GET['fly-notice'] ) && isset( $cache_messages[ $_GET['fly-notice'] ] ) ) {
     12    $notice = $cache_messages[ $_GET['fly-notice'] ];
    1313}
    1414?>
  • flywp/trunk/views/page-cache.php

    r3032189 r3121638  
    1010];
    1111
    12 if ( isset( $_GET['fly-notice'] ) && isset( $cache_messages[$_GET['fly-notice']] ) ) {
    13     $notice = $cache_messages[$_GET['fly-notice']];
     12if ( isset( $_GET['fly-notice'] ) && isset( $cache_messages[ $_GET['fly-notice'] ] ) ) {
     13    $notice = $cache_messages[ $_GET['fly-notice'] ];
    1414}
    1515?>
     
    3737
    3838        <?php if ( $notice ) { ?>
    39             <div class="fw-bg-green-200 fw-text-green-800 fw-px-4 fw-py-1" id="fly-page-cache-notice">
     39            <div class="fw-bg-green-200 fw-text-green-800 fw-px-4 fw-py-1 fly-form-notice">
    4040                <p><?php echo esc_html( $notice ); ?></p>
    4141            </div>
Note: See TracChangeset for help on using the changeset viewer.