stormpath / stormpath-lumen

Build simple, secure web applications with Stormpath and Lumen
Other
10 stars 1 forks source link

Add caching configuration #6

Open eyespies opened 8 years ago

eyespies commented 8 years ago

Currently when using this package, there is no way / method that I can see to configure the client caching. This means that all application requests always go direct to Stormpath, resulting in poor application performance. This package should provide the ability to configure the caching options for the stormpath-php-sdk package.

To work around this at the moment, I have created a simple Http\Providers\StormpathCachingConfigurationProvider.php class which configures the cache. This class is called / loaded in the bootstrap/app.php BEFORE the Stormpath provider and seems to properly enable caching. However, to me this is a hack fix and built in support would be much more appropriate.

omgitstom commented 8 years ago

Hi @jlspies1,

Thanks for the request. This is definitely something that we want to add.

@bretterer ^

Thanks! Tom

bretterer commented 8 years ago

@jlspies1 This is something we are actively working out a plan for. Please keep watching this ticket for updates in the near future.

-Brian