aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/cache.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-04-18 19:54:17 -0400
committerBrett Profitt <brett.profitt@gmail.com>2011-04-18 19:54:17 -0400
commit0d9c5c1ccd66018a819b4ca327ab203f473e35dc (patch)
treef55e5caa8bf8036b02fc553eecd2b615791d2ce5 /engine/lib/cache.php
parentca63a6b81eee1dfbee99a393a790402475a4612c (diff)
parentd928588805375e7190ab393e2def555b39701a27 (diff)
downloadelgg-0d9c5c1ccd66018a819b4ca327ab203f473e35dc.tar.gz
elgg-0d9c5c1ccd66018a819b4ca327ab203f473e35dc.tar.bz2
Merge branch 'master' of github.com:Elgg/Elgg
Diffstat (limited to 'engine/lib/cache.php')
-rw-r--r--engine/lib/cache.php6
1 files changed, 4 insertions, 2 deletions
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;
}