mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 15:06:06 +00:00
useCache client
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var app = new Espo.App({
|
||||
useCache: true,
|
||||
useCache: {{useCache}},
|
||||
cacheTimestamp: {{cacheTimestamp}}
|
||||
}, function (app) {
|
||||
app.start();
|
||||
|
||||
Reference in New Issue
Block a user