Skip to content

feature/hash-cache-keys #53

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

Merged
merged 10 commits into from
Jan 15, 2018
Merged

feature/hash-cache-keys #53

merged 10 commits into from
Jan 15, 2018

Conversation

sjbronner
Copy link
Contributor

fixes #48

.gitignore Outdated
@@ -1,2 +1,3 @@
/vendor
composer.lock
.*.sw?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably best handled in your global git configuration. It's been considered "best practice" to leave out environment-specific ignores from the project's git-ignore.

@coveralls
Copy link

coveralls commented Jan 11, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 4cfba48 on feature/hash-cache-keys into 15730e0 on develop.

@coveralls
Copy link

coveralls commented Jan 11, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 31e30c2 on feature/hash-cache-keys into 15730e0 on develop.

@sjbronner sjbronner changed the title WIP - Feature/hash cache keys Feature/hash cache keys Jan 11, 2018
@sjbronner sjbronner changed the title Feature/hash cache keys feature/hash cache keys Jan 11, 2018
@mikebronner mikebronner changed the title feature/hash cache keys feature/hash-cache-keys Jan 11, 2018
@@ -55,7 +55,7 @@ public static function all($columns = ['*'])
$class = get_called_class();
$instance = new $class;
$tags = [str_slug(get_called_class())];
$key = 'genealabslaravelmodelcachingtestsfixturesauthor';
$key = sha1('genealabslaravelmodelcachingtestsfixturesauthor');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call makeCacheKey() here, this was bad code on my part.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work in a static function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused as to why the function is marked static in the first place. It is called like an object method.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like this?

$key = $instance->makeCacheKey();

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for instance in tests/Unit/CachedBuilderTest.php line 44.

@coveralls
Copy link

coveralls commented Jan 15, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling d8bd679 on feature/hash-cache-keys into 15730e0 on develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants