aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/.gitignore3
-rwxr-xr-xpublic/index.php18
2 files changed, 12 insertions, 9 deletions
diff --git a/data/.gitignore b/data/.gitignore
index 5d36792ba..677c8f58c 100644
--- a/data/.gitignore
+++ b/data/.gitignore
@@ -1,4 +1,5 @@
application.ini
*_user.php
*.sqlite
-touch.txt \ No newline at end of file
+touch.txt
+no-cache.txt \ No newline at end of file
diff --git a/public/index.php b/public/index.php
index 9d1ee711c..9bf4fc073 100755
--- a/public/index.php
+++ b/public/index.php
@@ -24,14 +24,16 @@ if (file_exists ('install.php')) {
require('../constants.php');
session_cache_limiter('');
- require (LIB_PATH . '/http-conditional.php');
- $dateLastModification = max(
- @filemtime(DATA_PATH . '/touch.txt') - 1,
- @filemtime(LOG_PATH . '/application.log') - 1,
- @filemtime(DATA_PATH . '/application.ini') - 1
- );
- if (httpConditional($dateLastModification, 0, 0, false, false, true)) {
- exit(); //No need to send anything
+ if (!file_exists(DATA_PATH . '/no-cache.txt')) {
+ require (LIB_PATH . '/http-conditional.php');
+ $dateLastModification = max(
+ @filemtime(DATA_PATH . '/touch.txt') - 1,
+ @filemtime(LOG_PATH . '/application.log') - 1,
+ @filemtime(DATA_PATH . '/application.ini') - 1
+ );
+ if (httpConditional($dateLastModification, 0, 0, false, false, true)) {
+ exit(); //No need to send anything
+ }
}
set_include_path (get_include_path ()