add internal directories for cache & lockfiles

This commit is contained in:
Andrew Dolgov 2010-11-02 13:45:48 +03:00
parent c30543bb56
commit 2aae0cce7e
7 changed files with 9 additions and 3 deletions

2
.gitignore vendored
View file

@ -1 +1,3 @@
config.php config.php
cache/*/*
lock/*

2
cache/.htaccess vendored Normal file
View file

@ -0,0 +1,2 @@
Order deny,allow
Deny from all

0
cache/magpie/.empty vendored Normal file
View file

0
cache/simplepie/.empty vendored Normal file
View file

View file

@ -15,7 +15,7 @@
// longer than 5 seconds to generate. To prevent failed // longer than 5 seconds to generate. To prevent failed
// updates, increase this. // updates, increase this.
define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache'); define('MAGPIE_CACHE_DIR', 'cache/magpie');
// Local cache directory for RSS feeds // Local cache directory for RSS feeds
define('MAGPIE_CACHE_AGE', 60*30); define('MAGPIE_CACHE_AGE', 60*30);
@ -95,7 +95,7 @@
// 0 - Magpie // 0 - Magpie
// 1 - SimplePie // 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 // Cache directory for RSS feeds when using SimplePie
define('SIMPLEPIE_CACHE_IMAGES', false); define('SIMPLEPIE_CACHE_IMAGES', false);
@ -134,7 +134,7 @@
// option can be used to integrate tt-rss with Apache's external // option can be used to integrate tt-rss with Apache's external
// authentication modules. // authentication modules.
define('LOCK_DIRECTORY', '.'); define('LOCK_DIRECTORY', 'lock');
// Directory for lockfiles, must be writable to the user you run // Directory for lockfiles, must be writable to the user you run
// daemon process or cronjobs under. // daemon process or cronjobs under.

0
lock/.empty Normal file
View file

2
lock/.htaccess Normal file
View file

@ -0,0 +1,2 @@
Order deny,allow
Deny from all