-
-
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
Massive review and cleanup of JCache #9622
Conversation
(a bit above my skill set but sounds like this might address some existing issues here https://issues.joomla.org/tracker/joomla-cms/?state=open&sort=issue&direction=desc&category=cache&stools-active=1 ) This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9622. |
#9382 is included in here. #8707 I've added the fix for (when |
Thanks for checking can you update those issues as needed On 27 March 2016 at 19:12, Michael Babker notifications@github.com wrote:
Brian Teeman |
@mbabker I have updated the other issues. Thanks for reviewing them |
I have tested this item ✅ successfully on 9228a86 Did a code review (except the unit tests) and all seems fine. Installed the patch turned on File cache and all seems fine. Didn't test all the other cache handlers, but by looking at code changes, it seems fine and also corrects some bugs. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9622. |
i've tested successfully using only the redis handler |
@alikon Please use the Joomla! issue tracker to enter your test result. Thanks! |
I have tested this item ✅ successfully on 9228a86 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9622. |
RTC thanks This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9622. |
|
||
$memcachetest = @self::$_db->connect($server['host'], $server['port']); | ||
$memcachetest = @static::$_db->connect($server['host'], $server['port']); |
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.
This line is incorrect!
$server is not defined, $memcachetest return false, and below throw exception.
This is reason why travis on PR #11576 failed.
https://travis-ci.org/joomla/joomla-cms/jobs/151946004
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.
Oh. Oops.
On Saturday, August 13, 2016, Tomasz Narloch notifications@github.com
wrote:
In libraries/joomla/cache/storage/memcache.php
#9622 (comment):
$memcachetest = @self::$_db->connect($server['host'], $server['port']);
$memcachetest = @static::$_db->connect($server['host'], $server['port']);
This line is incorrect!
$server is not defined, $memcachetest return false, and below throw
exception.This is reason why travis on PR #11576
#11576 failed.
https://travis-ci.org/joomla/joomla-cms/jobs/151946004—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/joomla/joomla-cms/pull/9622/files/9228a8674c558e12d6af931e2b8785effa1bbbb8#r74692172,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWfoYsotSVZ4Tb6QFw_5WMQsQW3pRhqks5qfi8sgaJpZM4H5gT6
.
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.
Is this fixed somewhere or do we have to fix it, just curious.
It is fixed at #11565. |
@csthomas Thanks! |
Unfortunately this PR does a lot. It started just trying to clean up some of the tests but then several bits of dead code and bug fixes were needed to, so...
Summary of Changes
This PR makes the following changes:
TestCaseCache
for allJCacheStorage
handler tests and rewrites the test classes for those objects to use this test case (results in more consistent testing of all handlers when the environment supports it)JCache
classes for full consistency and removes some outdated or unneeded commentsJCacheStorageMemcache::store()
was manipulating the handler's lifetime setting after being instantiatedJCacheStorageRedis::store()
was manipulating the handler's lifetime setting after being instantiated, had some dead code (copy/paste from Memcache(d) not needed here), and used a hardcoded lifetime instead of the handler's configured lifetimeTesting Instructions