Skip to content

Commit

Permalink
Disable L2 cache for GHSA mirroring
Browse files Browse the repository at this point in the history
This was not necessary in `master` since we disabled the L2 cache globally there.

Signed-off-by: nscuro <[email protected]>
  • Loading branch information
nscuro committed Jan 25, 2025
1 parent 17a9494 commit c6949ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ boolean processAdvisory(final SecurityAdvisory advisory) {

final List<VulnerableSoftware> vsList = modelConverter.convert(advisory.getVulnerabilities());

try (final var qm = new QueryManager()) {
try (final var qm = new QueryManager().withL2CacheDisabled()) {
qm.getPersistenceManager().setProperty(PROPERTY_PERSISTENCE_BY_REACHABILITY_AT_COMMIT, "false");
qm.getPersistenceManager().addInstanceLifecycleListener(
new IndexingInstanceLifecycleListener(Event::dispatch),
Expand Down

0 comments on commit c6949ba

Please sign in to comment.