-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
3.7 Improve Cache Controller #12312
3.7 Improve Cache Controller #12312
Conversation
860d665
to
5b32ad0
Compare
5b32ad0
to
f621de4
Compare
f621de4
to
4b888e8
Compare
Can I ask you @mbabker for a review? |
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.
Looks fine, one PHPCS issue.
{ | ||
$data['output'] = JCache::setWorkarounds($output, $coptions); | ||
} | ||
else { |
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.
PHPCS issue.
Thanks Michael. Now I have to wait for 2 successful tests:) |
@csthomas Enable Cache and test if J works as before? |
Yes, be sure that cache works before patch |
I have tested this item ✅ successfully on 87f42d5 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12312. |
I have tested this item ✅ successfully on 87f42d5 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12312. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12312. |
Pull Request for Issue #12133 and other optimizations.
Summary of Changes
get
andstore
methods inJCacheController
, subclasses should have own methods.start
andend
methods inJCacheControllerOutput
- joomla does not use itcall
method inJCacheControllerCallback
setLifeTime
,setCaching
from JCacheController because__call()
method can call it directly on JCache instance.locked
andlocklooped
variables.get
andstore
method toJCacheControllerOutput
which is the same as deprecated methodget
andstore
inJCacheController
.JCacheController
I did optimization onget
methods.unlock()
method before unserialize(...)Testing Instructions
Joomla should work as before.
Code review.
Documentation Changes Required
None.