PluginProbe
SQLite Object Cache / 1.6.2
SQLite Object Cache v1.6.2
1.6.5 trunk 0.1.7 1.0.0 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4.0 1.4.1 1.5.1 1.5.4 1.5.5 1.5.6 1.5.7 All 30 releases
← All changes | sqlite-object-cache.php +8 -9 1.5.61.6.2 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2 /**
3 3 * Plugin Name: SQLite Object Cache
4 - * Version: 1.5.6
4 + * Version: 1.6.2
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/
@@ -7,12 +7,13 @@
7 7 * Author: Oliver Jones
8 8 * Author URI: https://github.com/OllieJones/
9 9 * Requires at least: 5.5
10 10 * Requires PHP: 5.6
11 - * Tested up to: 6.8
12 - *
11 + * Tested up to: 7.0
13 12 * Text Domain: sqlite-object-cache
14 13 * Domain Path: /languages/
14 + * License: GPLv2 or later
15 + * License URI: http://www.gnu.org/licenses/gpl-2.0.html
15 16 *
16 17 * @package SQLiteObjectCache
17 18 * @author Oliver Jones
18 19 * @since 0.1.0
@@ -23,20 +24,18 @@
23 24 }
24 25
25 26 require_once 'includes/class-sqlite-object-cache.php';
26 27 /* wp-cli interface activation */
27 -$is_cli = false;
28 28 if ( defined( 'WP_CLI' ) && WP_CLI ) {
29 - $is_cli = true;
30 29 require_once( plugin_dir_path( __FILE__ ) . 'includes/cli.php' );
31 30 }
32 31
33 -if ( is_admin() || $is_cli) {
32 +if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
34 33 require_once 'includes/class-sqlite-object-cache-settings.php';
35 - require_once 'includes/lib/class-sqlite-object-cache-admin-api.php';
36 34 require_once 'includes/lib/class-sqlite-object-cache-statistics.php';
37 35 require_once 'includes/lib/class-sqlite-backup-exclusion.php';
38 36 require_once 'includes/lib/class-file.php';
37 + require_once 'includes/lib/class-sqlite-object-cache-opcache.php';
39 38 }
40 39 /**
41 40 * Returns the main instance of SQLite_Object_Cache to prevent the need to use globals.
42 41 *
@@ -43,12 +42,12 @@
43 42 * @return object SQLite_Object_Cache
44 43 * @since 1.0.0
45 44 */
46 45 function sqlite_object_cache() {
47 - $instance = new SQLite_Object_Cache( __FILE__, '1.5.6' );
46 + $instance = new SQLite_Object_Cache( __FILE__, '1.6.2' );
48 47
49 48 if ( is_admin() ) {
50 - $instance->settings = new SQLite_Object_Cache_Settings( $instance );
49 + $instance->settings = new SQLite_Object_Cache_Settings( $instance, plugin_basename( __FILE__ ));
51 50 }
52 51
53 52 return $instance;
54 53 }