Commit 679d5417 by Scott

Namespace cache keys

parent f4c18bae
......@@ -43,7 +43,7 @@ $pagestate = qa_get_state();
// Get information about this question
$cacheDriver = Q2A_Storage_CacheFactory::getCacheDriver();
$cacheKey = "page:question:$questionid";
$cacheKey = "q2a.question:$questionid";
$useCache = $userid === null && $cacheDriver->isEnabled() && !qa_is_http_post() && empty($pagestate);
$saveCache = false;
......
......@@ -512,7 +512,7 @@ function qa_db_single_select($selectspec)
// check for cached results
if (isset($selectspec['caching'])) {
$cacheDriver = Q2A_Storage_CacheFactory::getCacheDriver();
$cacheKey = 'query:' . $selectspec['caching']['key'];
$cacheKey = 'q2a.query:' . $selectspec['caching']['key'];
if ($cacheDriver->isEnabled()) {
$queryData = $cacheDriver->get($cacheKey);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment