diff --git a/inc/class-wp-redis-user-session-storage.php b/inc/class-wp-redis-user-session-storage.php index ee14ea2d8ca12269fa48cffd1bcd34fbb1a0ce9a..c6fa8227e0ee9aa0312b75021f4a837c25b62f35 100644 --- a/inc/class-wp-redis-user-session-storage.php +++ b/inc/class-wp-redis-user-session-storage.php @@ -1,26 +1,9 @@ <?php -/* -Plugin Name: WP Redis User Session Storage -Plugin URI: https://ethitter.com/plugins/wp-redis-user-session-storage/ -Description: Store WordPress session tokens in Redis rather than the usermeta table. Requires the Redis PECL extension. -Version: 0.1 -Author: Erick Hitter -Author URI: https://ethitter.com/ - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ +/** + * Offload session storage to Redis. + * + * @package WP_Redis_User_Session_Storage + */ /** * Don't load in contexts that lack the WP_Session_Tokens class diff --git a/wp-redis-user-session-storage.php b/wp-redis-user-session-storage.php new file mode 100644 index 0000000000000000000000000000000000000000..789c3300dcab5b8a806fa42467e74b624d7a6a98 --- /dev/null +++ b/wp-redis-user-session-storage.php @@ -0,0 +1,31 @@ +<?php +/** + * Load plugin. + * + * @package WP_Redis_User_Session_Storage + */ + +/** + * Plugin Name: WP Redis User Session Storage + * Plugin URI: https://ethitter.com/plugins/wp-redis-user-session-storage/ + * Description: Store WordPress session tokens in Redis rather than the usermeta table. Requires the Redis PECL extension. + * Version: 0.1 + * Author: Erick Hitter + * Author URI: https://ethitter.com/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once __DIR__ . '/inc/class-wp-redis-user-session-storage.php';