Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Update libraries/joomla/document/json/json.php
Browse files Browse the repository at this point in the history
Allow the document to be cached if required.
  • Loading branch information
chrisdavenport committed Feb 26, 2013
1 parent 98a39bd commit 28fa2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/document/json/json.php
Expand Up @@ -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();
Expand Down

0 comments on commit 28fa2ce

Please sign in to comment.