From e7b033304ca473aa5fe3992338b1555daeb4acb0 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 14 Apr 2015 12:11:45 +0300 Subject: [PATCH] clear_cache.php --- Gruntfile.js | 1 + application/Espo/Core/Application.php | 6 +++++ clear_cache.php | 33 +++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 clear_cache.php diff --git a/Gruntfile.js b/Gruntfile.js index 7d66f43d03..2e170d2a15 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -155,6 +155,7 @@ module.exports = function (grunt) { 'bootstrap.php', 'cron.php', 'rebuild.php', + 'clear_cache.php', 'upgrade.php', 'index.php', 'LICENSE.txt', diff --git a/application/Espo/Core/Application.php b/application/Espo/Core/Application.php index 3db2292807..8283a38769 100644 --- a/application/Espo/Core/Application.php +++ b/application/Espo/Core/Application.php @@ -138,6 +138,12 @@ class Application $dataManager->rebuild(); } + public function runClearCache() + { + $dataManager = $this->getContainer()->get('dataManager'); + $dataManager->clearCache(); + } + public function isInstalled() { $config = $this->getContainer()->get('config'); diff --git a/clear_cache.php b/clear_cache.php new file mode 100644 index 0000000000..84dcf0c9ac --- /dev/null +++ b/clear_cache.php @@ -0,0 +1,33 @@ +runClearCache(); +