From e18e17ef647e7faf4563bb8ce77ffe448bc929cb Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 18 Apr 2011 18:15:14 +0000 Subject: Fixes #3365. Pulled in blacktooth's patch. git-svn-id: http://code.elgg.org/elgg/trunk@9003 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/cache.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engine') diff --git a/engine/lib/cache.php b/engine/lib/cache.php index 8529ae7fa..11c95e78a 100644 --- a/engine/lib/cache.php +++ b/engine/lib/cache.php @@ -163,13 +163,15 @@ function elgg_register_simplecache_view($viewname) { function elgg_get_simplecache_url($type, $view) { global $CONFIG; $lastcache = (int)$CONFIG->lastcache; - + $viewtype = elgg_get_viewtype(); if (elgg_is_simplecache_enabled()) { - $viewtype = elgg_get_viewtype(); $url = elgg_get_site_url() . "cache/$type/$viewtype/$view.$lastcache.$type"; } else { $url = elgg_get_site_url() . "$type/$view.$lastcache.$type"; + $elements = array("view" => $viewtype); + $url = elgg_http_add_url_query_elements($url, $elements); } + return $url; } -- cgit v1.2.3