d612b86a8c
homepages served without cache error catching memo homepagedata support auto limit no more config pins
13 lines
314 B
JavaScript
13 lines
314 B
JavaScript
const memo = {};
|
|
// this didn't seem to help.
|
|
if (!memo.homepageData) {
|
|
try {
|
|
memo.homepageData = require('../../custom/homepages/v2');
|
|
} catch (err) {
|
|
console.log('homepage data failed');
|
|
}
|
|
}
|
|
const getHomepageJSON = () => {
|
|
return memo.homepageData || {};
|
|
};
|
|
module.exports = { getHomepageJSON };
|