From: Steve Sutton Date: Mon, 18 Jun 2018 15:36:21 +0000 (-0400) Subject: Update for building cache string. X-Git-Tag: v2.10.34^2~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=0ef2fff100dcc95571c88d0e59413017b4566ff7;p=WP-Plugins%2Fglm-member-db.git Update for building cache string. Use the actual REQUEST_URI in the string also. --- 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();";