| @@ -1,19 +1,18 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: SQLite Object Cache |
| 4 | - * Version: 1.6.5 | |
| 4 | + * Version: 1.6.0 | |
| 5 | 5 | * Plugin URI: https://github.com/OllieJones/sqlite-object-cache |
| 6 | 6 | * Description: A persistent object cache backend powered by SQLite3. |
| 7 | 7 | * Author: Oliver Jones |
| 8 | 8 | * Author URI: https://github.com/OllieJones/ |
| 9 | - * Requires at least: 5.9 | |
| 9 | + * Requires at least: 5.5 | |
| 10 | 10 | * Requires PHP: 5.6 |
| 11 | - * Tested up to: 7.1 | |
| 11 | + * Tested up to: 6.9 | |
| 12 | + * | |
| 12 | 13 | * Text Domain: sqlite-object-cache |
| 13 | 14 | * Domain Path: /languages/ |
| 14 | - * License: GPLv2 or later | |
| 15 | - * License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| 16 | 15 | * |
| 17 | 16 | * @package SQLiteObjectCache |
| 18 | 17 | * @author Oliver Jones |
| 19 | 18 | * @since 0.1.0 |
| @@ -24,18 +23,20 @@ | ||
| 24 | 23 | } |
| 25 | 24 | |
| 26 | 25 | require_once 'includes/class-sqlite-object-cache.php'; |
| 27 | 26 | /* wp-cli interface activation */ |
| 27 | +$is_cli = false; | |
| 28 | 28 | if ( defined( 'WP_CLI' ) && WP_CLI ) { |
| 29 | + $is_cli = true; | |
| 29 | 30 | require_once( plugin_dir_path( __FILE__ ) . 'includes/cli.php' ); |
| 30 | 31 | } |
| 31 | 32 | |
| 32 | -if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) { | |
| 33 | +if ( is_admin() || $is_cli) { | |
| 33 | 34 | require_once 'includes/class-sqlite-object-cache-settings.php'; |
| 35 | + require_once 'includes/lib/class-sqlite-object-cache-admin-api.php'; | |
| 34 | 36 | require_once 'includes/lib/class-sqlite-object-cache-statistics.php'; |
| 35 | 37 | require_once 'includes/lib/class-sqlite-backup-exclusion.php'; |
| 36 | 38 | require_once 'includes/lib/class-file.php'; |
| 37 | - require_once 'includes/lib/class-sqlite-object-cache-opcache.php'; | |
| 38 | 39 | } |
| 39 | 40 | /** |
| 40 | 41 | * Returns the main instance of SQLite_Object_Cache to prevent the need to use globals. |
| 41 | 42 | * |
| @@ -42,9 +43,9 @@ | ||
| 42 | 43 | * @return object SQLite_Object_Cache |
| 43 | 44 | * @since 1.0.0 |
| 44 | 45 | */ |
| 45 | 46 | function sqlite_object_cache() { |
| 46 | - $instance = new SQLite_Object_Cache( __FILE__, '1.6.5' ); | |
| 47 | + $instance = new SQLite_Object_Cache( __FILE__, '1.6.0' ); | |
| 47 | 48 | |
| 48 | 49 | if ( is_admin() ) { |
| 49 | 50 | $instance->settings = new SQLite_Object_Cache_Settings( $instance, plugin_basename( __FILE__ )); |
| 50 | 51 | } |