ad-cache-warmup.service.ts 766 B

123456789101112131415161718192021222324
  1. // libs/core/src/ad/ad-cache-warmup.service.ts
  2. import { Injectable, Logger, OnModuleInit } from '@nestjs/common';
  3. /**
  4. * Formerly responsible for per-ad cache warmups.
  5. * Per-ad cache keys have been removed, so this service now
  6. * short-circuits and merely logs its disabled state to satisfy module wiring.
  7. */
  8. @Injectable()
  9. export class AdCacheWarmupService implements OnModuleInit {
  10. private readonly logger = new Logger(AdCacheWarmupService.name);
  11. async onModuleInit(): Promise<void> {
  12. this.logger.log(
  13. 'Individual ad cache warmup is disabled; no action is taken on startup.',
  14. );
  15. }
  16. async warmupAllAdCaches(): Promise<void> {
  17. this.logger.debug(
  18. 'warmupAllAdCaches skipped because per-ad cache keys no longer exist.',
  19. );
  20. }
  21. }