Update for building cache string.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 18 Jun 2018 15:36:21 +0000 (11:36 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 18 Jun 2018 15:36:21 +0000 (11:36 -0400)
Use the actual REQUEST_URI in the string also.

controllers/front.php

index 5411e81..44a3017 100644 (file)
@@ -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();";