According to composer's suggestions, the SDK now has built-in support for request caching via doctrine/cache. This could potentially replace our custom metadata caching and give us a general performance boost.

We should also look into Guzzle's built in caching as it might be even more comprehensive.

There's a bug with the metadata cache clearing button in that if you press enter on a form field, that submit button is triggered instead of the configuration submit button. If we still need that, we should fix it along with this issue.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

deviantintegral’s picture

Issue summary: View changes
deviantintegral’s picture

Assigned: Unassigned » deviantintegral
deviantintegral’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Active » Needs review
FileSize
11.19 KB

It turns out that caching was only supported for credentials, and not any other type of request. I've filed an upstream PR, and pointed composer to my fork with that patch.

In the best case where data is all cached, with some WIP code I have for image styles, a file_exists() call on the S3 derivative and a redirect is reduced from ~275ms to ~60ms. In the case where an image style has to be generated, it's a savings of around 20% on an unfortunately large 4-5 seconds.

deviantintegral’s picture

Fixes always forcing the cache to be on.

deviantintegral’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.