-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic built-in cache #32
Conversation
this seems to be a very important feature and might be easy to do thanks so this guzzle plugin: |
This could work, I only think of two problems that I can see and I'd love to get your opinion on:
Also, the cache needs to be overridable, but that'd be easy: for instance, offering to take an alternative |
I didn't dig into that yet but I see your points. maybe @mtdowling can give us some hints here .. we may also want to upgrade to guzzle 4.0 |
@lsmith77 You can't use Guzzle 4.0 if you still want to support PHP 5.3. |
This is relevant, considering PHP 5.3 is very used, and there are quite a bunch of hosting providers our there that don't support 5.4. So much for Guzzle 4.0, but that doesn't mean we can't do the caching with Guzzle's cache plugin anyway (so this ticket is still relevant). |
Do you have actual data on this? |
Not actually, I was only speaking from experience with hosting providers; but the first link about PHP usage (this one) is kinda enough data for this matter here. Since prismic.io is a service in your application, it's great to build up brand new projects, but it's also great to add into existing projects, and may definitely be used as such by some users. |
Alright, I think I understand better how this needs to be done. Looking at the existing implementations of CacheAdapterInterface, I seem to understand there are two ways to do this:
Alright, these were my thought as I get into it, I'll get started with this now. I'm new to this, so if anyone feels like giving a hand, any help is welcome (first: does what I just stated above make sense? am I headed the right direction?) Thanks! |
Making sure all text bits that can be written through the writing-room g...
haven't gotten a chance to test this yet. not sure if you guys intend to follow this standard or not. |
Sure, every standard going in the right direction is good! Do you mean the whole code of the kit, or just the new code from this PR? (If whole kit, I'll open a separate issue) Which violations of PSR-2 did you notice, so it gives me pointers? It's a rather dense standard, I need to learn it first; but I'll get into it today. |
saw a few in this PR didnt check the rest of the code. easiest is just to use https://github.com/fabpot/PHP-CS-Fixer |
I didn't know this existed, and this is definitely going to be helpful; thanks a lot! |
In overall I would recommend to setup Scrutinizer-CI, it's free for OS & it's "like" Jenkins =) |
We already use TravisCI, but I feel like Travis is more unit-test oriented, and Scrutinizer is more about code quality (which would make it a bit more like Sonar); am I getting this right? |
yes and yes .. scrutinizer is about code quality and travis about testing .. they both work well together .. in fact you can use scrutinizer to collect and display code coverage generated by travis ci |
So, the master and this branch are now PSR-2 compliant. It would be nice to keep this going through time indeed; I'll ask the guys, but I think it would be nice to use ScrutinizerCI indeed. |
We took an entirely different approach (using APC), and the PR for this feature is now #49, and is almost ready to land. |
No description provided.