From: Andrew Dolgov Date: Tue, 2 Nov 2010 10:45:48 +0000 (+0300) Subject: add internal directories for cache & lockfiles X-Git-Tag: 1.5.0~424 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2aae0cce7ebdeb634755d5e4ae9ab1b9588ffae6;p=tt-rss.git add internal directories for cache & lockfiles --- 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