PluginProbe
SQLite Object Cache / 1.6.3
SQLite Object Cache v1.6.3
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
sqlite-object-cache / sqlite-object-cache.php

sqlite-object-cache.php in SQLite Object Cache 1.6.3, at sqlite-object-cache.php

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