Skip to content

Commit

Permalink
Cache key should not have value in it
Browse files Browse the repository at this point in the history
Updated docs links
  • Loading branch information
hparadiz committed May 16, 2018
1 parent ace6462 commit fdaa331
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion classes/Divergence/Models/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public function save($deep = true)
// clear caches
foreach ($this->getClassFields() as $field => $options) {
if (!empty($options['unique']) || !empty($options['primary'])) {
$key = sprintf('%s/%s:%s', static::$tableName, $field, $this->getValue($field));
$key = sprintf('%s/%s', static::$tableName, $field);
DB::clearCachedRecord($key);
}
}
Expand Down
7 changes: 4 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ This collection of classes contains my favorite building blocks for developing w

Unit testing the code base and providing code coverage is a primary goal of this project.

## [Documentation](https://github.com/Divergence/docs#divergence-framework-documentation)
## [Getting Started](https://github.com/Divergence/docs/blob/master/gettingstarted.md#getting-started)

# Main Features
* Models
* Real PHP classes.
Expand All @@ -31,9 +34,7 @@ Unit testing the code base and providing code coverage is a primary goal of this

* Templates
* Out of the box support for Smarty & Dwoo Templates using the Dwoo engine
* Respond with a Template instantly `RequestHandler::respond('/path/to/tpl')`

## [Getting Started](https://github.com/Divergence/docs#getting-started)
* Respond with a Template instantly `RequestHandler::respond('/path/to/tpl')`

### Contributing To Divergence

Expand Down

0 comments on commit fdaa331

Please sign in to comment.