79159914

Date: 2024-11-05 16:29:26
Score: 0.5
Natty:
Report link

On my API Adapter i added Guzzle Cache:

    $stack = HandlerStack::create();
    $stack->push(new CacheMiddleware(), 'cache');
    // Initialize the client with the handler option
    $client = new Client(['handler' => $stack]);

In the .htaccess:

<ifModule mod_headers.c>
    Header set Connection keep-alive
</ifModule>

And i added a planned task which make at least an API call per hour.

It looks good.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Lenwë Galathil