Skip to content

Commit

Permalink
Reduce memory usage by disabling pokemon cache (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfberry authored Oct 18, 2023
1 parent 322f9a0 commit f513037
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "poracle",
"version": "4.6.2",
"version": "4.7.0",
"description": "Webhook processing and personalised discord|telegram alarms",
"keywords": [
"poracle",
Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ async function processOne(hook) {
fastify.controllerLog.debug(`${hook.message.encounter_id}: Wild encounter was received but set to be ignored in config`)
break
}
if (!hook.message.poracleTest) {
if (!hook.message.poracleTest && !config.tuning?.disablePokemonCache) {
fastify.webhooks.info(`pokemon ${JSON.stringify(hook.message)}`)
const verifiedSpawnTime = (hook.message.verified || hook.message.disappear_time_verified)
const cacheKey = `${hook.message.encounter_id}${verifiedSpawnTime ? 'T' : 'F'}${hook.message.cp}`
Expand Down

0 comments on commit f513037

Please sign in to comment.