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

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

49 lines 1.2 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.2.2
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: 6.1.1
12 *
13 * Text Domain: sqlite-object-cache
14 * Domain Path: /languages/
15 *
16 * @package SQLiteObjectCache
17 * @author Oliver Jones
18 * @since 0.1.0
19 */
20
21 if ( ! defined( 'ABSPATH' ) ) {
22 exit;
23 }
24
25 require_once 'includes/class-sqlite-object-cache.php';
26 if ( is_admin() ) {
27 require_once 'includes/class-sqlite-object-cache-settings.php';
28 require_once 'includes/lib/class-sqlite-object-cache-admin-api.php';
29 require_once 'includes/lib/class-sqlite-object-cache-statistics.php';
30 require_once 'includes/lib/class-sqlite-backup-exclusion.php';
31 }
32 /**
33 * Returns the main instance of SQLite_Object_Cache to prevent the need to use globals.
34 *
35 * @return object SQLite_Object_Cache
36 * @since 1.0.0
37 */
38 function sqlite_object_cache() {
39 $instance = new SQLite_Object_Cache( __FILE__, '1.2.2' );
40
41 if ( is_admin() ) {
42 $instance->settings = new SQLite_Object_Cache_Settings( $instance );
43 }
44
45 return $instance;
46 }
47
48 sqlite_object_cache();
49