This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Update libraries/joomla/document/json/json.php

Allow the document to be cached if required.
  • Loading branch information...
chrisdavenport committed Feb 26, 2013
1 parent 98a39bd commit 28fa2cefd08cf9171922b493e3bd7e11b792f580
Showing with 1 addition and 1 deletion.
  1. +1 −1 libraries/joomla/document/json/json.php
@@ -57,7 +57,7 @@ public function __construct($options = array())
*/
public function render($cache = false, $params = array())
{
- JResponse::allowCache(false);
+ JResponse::allowCache($cache);
JResponse::setHeader('Content-disposition', 'attachment; filename="' . $this->getName() . '.json"', true);
parent::render();

0 comments on commit 28fa2ce

Please sign in to comment.