From 2aae0cce7ebdeb634755d5e4ae9ab1b9588ffae6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 2 Nov 2010 13:45:48 +0300 Subject: [PATCH] add internal directories for cache & lockfiles --- .gitignore | 2 ++ cache/.htaccess | 2 ++ cache/magpie/.empty | 0 cache/simplepie/.empty | 0 config.php-dist | 6 +++--- lock/.empty | 0 lock/.htaccess | 2 ++ 7 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 cache/.htaccess create mode 100644 cache/magpie/.empty create mode 100644 cache/simplepie/.empty create mode 100644 lock/.empty create mode 100644 lock/.htaccess diff --git a/.gitignore b/.gitignore index 4f4773fb..f40b2b66 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ config.php +cache/*/* +lock/* diff --git a/cache/.htaccess b/cache/.htaccess new file mode 100644 index 00000000..93169e4e --- /dev/null +++ b/cache/.htaccess @@ -0,0 +1,2 @@ +Order deny,allow +Deny from all diff --git a/cache/magpie/.empty b/cache/magpie/.empty new file mode 100644 index 00000000..e69de29b diff --git a/cache/simplepie/.empty b/cache/simplepie/.empty new file mode 100644 index 00000000..e69de29b diff --git a/config.php-dist b/config.php-dist index 08401133..b52414d9 100644 --- a/config.php-dist +++ b/config.php-dist @@ -15,7 +15,7 @@ // longer than 5 seconds to generate. To prevent failed // updates, increase this. - define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache'); + define('MAGPIE_CACHE_DIR', 'cache/magpie'); // Local cache directory for RSS feeds define('MAGPIE_CACHE_AGE', 60*30); @@ -95,7 +95,7 @@ // 0 - Magpie // 1 - SimplePie - define('SIMPLEPIE_CACHE_DIR', '/var/tmp/simplepie-ttrss-cache'); + define('SIMPLEPIE_CACHE_DIR', 'cache/simplepie'); // Cache directory for RSS feeds when using SimplePie define('SIMPLEPIE_CACHE_IMAGES', false); @@ -134,7 +134,7 @@ // option can be used to integrate tt-rss with Apache's external // authentication modules. - define('LOCK_DIRECTORY', '.'); + define('LOCK_DIRECTORY', 'lock'); // Directory for lockfiles, must be writable to the user you run // daemon process or cronjobs under. diff --git a/lock/.empty b/lock/.empty new file mode 100644 index 00000000..e69de29b diff --git a/lock/.htaccess b/lock/.htaccess new file mode 100644 index 00000000..93169e4e --- /dev/null +++ b/lock/.htaccess @@ -0,0 +1,2 @@ +Order deny,allow +Deny from all -- 2.39.5