-
Notifications
You must be signed in to change notification settings - Fork 131
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
2773-basics #2778
2773-basics #2778
Conversation
$envCache = new File($envConf['path'] . $envConf['prefix'] . 'cache', true); | ||
$viewCache = new File(CACHE . 'views' . DS . 'cache', true); | ||
$dataCache = new File(CACHE . 'datas' . DS . 'cache', true); | ||
$coreCache = new BcFile($coreConf['path'] . $coreConf['prefix'] . 'cache'); |
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.
@nghiem-mb BcFile::exists() って存在してますか?
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.
あー
そうですね。
追加します。
if (preg_match('/\/index$/', $url)) { | ||
$replacedUrl = preg_replace('/\/index$/', '', $url); | ||
$replacedCache = new File($viewCachePath . DS . strtolower(Inflector::slug($replacedUrl)) . $ext, true); | ||
$replacedCache = new BcFile($viewCachePath . DS . strtolower(Inflector::slug($replacedUrl)) . $ext); |
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.
@nghiem-mb BcFile::close() って存在してますか?
No description provided.