From b92fc5702e3fa9068ff17c9fd323ab406599ae4e Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 15 Jun 2018 14:12:43 -0400 Subject: [PATCH] Turn off caching for member detail pages. Not working correctly. --- index.php | 6 +++--- setup/shortcodes.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index a1455365..c02aff44 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 2.10.32 + * Version: 2.10.33 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabase * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 2.10.32 + * @version 2.10.33 */ $GLOBALS['glmAssociateMemTracker'] = memory_get_usage(); @@ -46,7 +46,7 @@ if (!defined('ABSPATH')) { * */ -define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.32'); +define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.33'); define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.36'); // Check if plugin version is not current in WordPress option and if needed updated it diff --git a/setup/shortcodes.php b/setup/shortcodes.php index 03753f79..9aa42907 100644 --- a/setup/shortcodes.php +++ b/setup/shortcodes.php @@ -147,7 +147,7 @@ if ( isset( $config['settings'] ) && $config['settings']['enable_members'] ) { 'menu' => 'members', 'action' => 'detail', 'cacheControl' => array( - 'active' => $enableCache, + 'active' => false,//$enableCache, 'cacheTime' => '2 WEEK' // MySQL "DATE_ADD" time interval - see https://www.w3schools.com/sql/func_date_add.asp ), 'table' => GLM_MEMBERS_PLUGIN_DB_PREFIX.'settings_general', -- 2.17.1