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
Requested JsHelper buffer #156
Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1733937
allow to disable cache gc
99685ba
disabling gc doesn't require an explicit null value
00096b7
handling bit type column
3cf94ec
fix dbo_mysql.testQuoting test
293ba8a
add bit column related tests
8b4b532
Merge commit '1.3.8'
16e1437
Merge commit '1.3.8' into 1.3
473cd1a
Merge branch '1.3'
7132143
Merge branch 'dbo-mysql-bit'
49907c0
Merge branch 'upstream' into 1.3
a4db32b
use an other mehod name to get cached list sources
360d398
fix uppercase issue
bf47d65
Merge branch 'upstream' into 1.3
ce1efbb
Merge branch '1.3'
5b462ae
Merge branch 'cached-list-sources'
f708e5f
add cache hash file engine
1dcd078
Merge branch 'hashfile-cacheengine'
ab48099
fix wrong function name
7f60af0
Merge branch 'dbo-mysql-bit'
4d9afe8
merge requested js buffer to the main one
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
/** | ||
* | ||
* @author Clément Hallet | ||
* @link http://twitter.com/challet | ||
* @license MIT license | ||
* | ||
*/ | ||
|
||
if (!class_exists('FileEngine')) { | ||
require LIBS . 'cache/file.php'; | ||
} | ||
|
||
class HashFileEngine extends FileEngine { | ||
|
||
const HASH_DIGITS_NUMBER = 3; | ||
|
||
function _setKey($key) { | ||
|
||
parent::_setKey($key); | ||
|
||
$intermediate_key = substr(md5($this->_File->name), 0, self::HASH_DIGITS_NUMBER); | ||
|
||
$this->_File->Folder->create( | ||
$this->_File->Folder->addPathElement( | ||
$this->_File->Folder->pwd(), | ||
$intermediate_key | ||
) | ||
); | ||
$this->_File->Folder->cd($intermediate_key); | ||
$this->_File->path = null; | ||
$this->_File->pwd(); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this break a pile of backwards compatibility?