useCache client

This commit is contained in:
Yuri Kuznetsov
2014-04-16 15:29:35 +03:00
parent aeda451488
commit e985a76bae
2 changed files with 2 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ class Application
$html = file_get_contents('main.html');
$html = str_replace('{{cacheTimestamp}}', $config->get('cacheTimestamp', 0), $html);
$html = str_replace('{{useCache}}', $config->get('useCache') ? 'true' : 'false' , $html);
echo $html;
exit;
}

View File

@@ -10,7 +10,7 @@
<script type="text/javascript">
$(function () {
var app = new Espo.App({
useCache: true,
useCache: {{useCache}},
cacheTimestamp: {{cacheTimestamp}}
}, function (app) {
app.start();