fix cache dir
This commit is contained in:
@@ -6,7 +6,7 @@ const path = require('path');
|
|||||||
const BASE_URL = 'https://www.filmspourenfants.net';
|
const BASE_URL = 'https://www.filmspourenfants.net';
|
||||||
|
|
||||||
// Setup disk cache
|
// Setup disk cache
|
||||||
const CACHE_DIR = path.join(__dirname, '../cache');
|
const CACHE_DIR = process.env.CACHE_DIR || '/app/data/cache';
|
||||||
if (!fs.existsSync(CACHE_DIR)) fs.mkdirSync(CACHE_DIR, { recursive: true });
|
if (!fs.existsSync(CACHE_DIR)) fs.mkdirSync(CACHE_DIR, { recursive: true });
|
||||||
|
|
||||||
// Cache operations
|
// Cache operations
|
||||||
|
@@ -5,7 +5,7 @@ const path = require('path');
|
|||||||
const BASE_URL = 'https://www.filmstouspublics.fr';
|
const BASE_URL = 'https://www.filmstouspublics.fr';
|
||||||
|
|
||||||
// Setup disk cache
|
// Setup disk cache
|
||||||
const CACHE_DIR = path.join(__dirname, '../cache');
|
const CACHE_DIR = process.env.CACHE_DIR || '/app/data/cache';
|
||||||
if (!fs.existsSync(CACHE_DIR)) fs.mkdirSync(CACHE_DIR, { recursive: true });
|
if (!fs.existsSync(CACHE_DIR)) fs.mkdirSync(CACHE_DIR, { recursive: true });
|
||||||
|
|
||||||
// Load cache from disk if available
|
// Load cache from disk if available
|
||||||
|
Reference in New Issue
Block a user