mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
do not cache content from https://jacksonh.org
This commit is contained in:
parent
ae9c6cc8b2
commit
aa2caca944
2 changed files with 3 additions and 1 deletions
|
|
@ -1368,7 +1368,7 @@ export const deleteLibraryItemsByUserId = async (userId: string) => {
|
|||
}
|
||||
|
||||
export const batchDelete = async (criteria: FindOptionsWhere<LibraryItem>) => {
|
||||
const batchSize = 1000
|
||||
const batchSize = 20
|
||||
|
||||
const qb = libraryItemRepository.createQueryBuilder().where(criteria)
|
||||
const countSql = queryBuilderToRawSql(qb.select('COUNT(1)'))
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ const bucketName = process.env.GCS_UPLOAD_BUCKET || 'omnivore-files'
|
|||
const NO_CACHE_URLS = [
|
||||
'https://deviceandbrowserinfo.com/are_you_a_bot',
|
||||
'https://deviceandbrowserinfo.com/info_device',
|
||||
'https://jacksonh.org',
|
||||
]
|
||||
|
||||
const signToken = promisify(jwt.sign)
|
||||
|
|
@ -275,6 +276,7 @@ export const processFetchContentJob = async (
|
|||
const isBlocked = await isDomainBlocked(redisDataSource, domain)
|
||||
if (isBlocked) {
|
||||
console.log('domain is blocked', domain)
|
||||
logRecord.error = 'domain is blocked'
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue