From 0ef2fff100dcc95571c88d0e59413017b4566ff7 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 18 Jun 2018 11:36:21 -0400 Subject: [PATCH] Update for building cache string. Use the actual REQUEST_URI in the string also. --- controllers/front.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front.php b/controllers/front.php index 5411e814..44a30170 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -338,7 +338,7 @@ class glmMembersFront extends GlmPluginSupport if ($scCacheControl && $scCacheControl['active']) { // Create cache_code for this request - $cache_code = md5(GLM_MEMBERS_SITE_BASE_URL.print_r($atts,1).print_r($shortcode,1).print_r($_REQUEST,1)); + $cache_code = md5(GLM_MEMBERS_SITE_BASE_URL.$_SERVER['REQUEST_URI'].print_r($atts,1).print_r($shortcode,1).print_r($_REQUEST,1)); // Remove all old cache entries from the database $sql = "DELETE from ".GLM_MEMBERS_PLUGIN_DB_PREFIX."cache WHERE DATE_ADD(created, INTERVAL ".$scCacheControl['cacheTime'].") < NOW();"; -- 2.17.1