aboutsummaryrefslogtreecommitdiff
path: root/simplecache
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-16 15:33:47 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-16 15:33:47 +0000
commit9330baece53a1e0adb5e8ae08dfec4dfec7ca2de (patch)
treeef25f0d49764c40554f49478143940c21b376593 /simplecache
parentb2537fa6483ee7f637e97beb6b2933a9d0c01841 (diff)
downloadelgg-9330baece53a1e0adb5e8ae08dfec4dfec7ca2de.tar.gz
elgg-9330baece53a1e0adb5e8ae08dfec4dfec7ca2de.tar.bz2
Views simplecache improvements.
git-svn-id: https://code.elgg.org/elgg/trunk@2766 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'simplecache')
-rw-r--r--simplecache/view.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/simplecache/view.php b/simplecache/view.php
index b7e4e7fe5..475ad22b6 100644
--- a/simplecache/view.php
+++ b/simplecache/view.php
@@ -23,6 +23,8 @@
if ($dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass)) {
$view = $viewinput['view'];
+ $viewtype = $viewinput['viewtype'];
+ if (empty($viewtype)) $viewtype = 'default';
// Get the dataroot
if (@mysql_select_db($CONFIG->dbname,$dblink)) {
@@ -30,7 +32,7 @@
$row = mysql_fetch_object($result);
$dataroot = $row->value;
}
- $filename = $dataroot . 'views_simplecache/' . md5($view);
+ $filename = $dataroot . 'views_simplecache/' . md5($viewtype . $view);
if (file_exists($filename))
$contents = @file_get_contents($filename);
else {