Commit 55d9cec4 authored by merlinofchaos's avatar merlinofchaos

#154272: Uncacheable queries did not get substitutions properly run on them.

parent 705e475c
......@@ -274,13 +274,14 @@ function _views_get_query(&$view, $args, $filters) {
else {
views_load_query();
$info = _views_build_query($view, $args, $filters);
if ($view->is_cacheable) {
$data = array(
$data = array(
'query' => _views_replace_args($info['query'], $info['args']),
'countquery' => _views_replace_args($info['countquery'], $info['args']),
);
);
if ($view->is_cacheable) {
cache_set('views_query:' . $view->name, 'cache_views', serialize($data));
}
$info = array_merge($info, $data);
}
// Run-time replacement so we can do cacheing
......
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