? Failure

User tests: Successful: Unsuccessful:

avatar frankmayer
frankmayer
13 Jun 2017

Summary of Changes

Some improvements and cleanups in plugins/system/cache

  • Make use of $this->app instead of JFactory::getApplication();
  • Added missing docblocks
  • Type-safety

Testing Instructions

  • Code review
  • Test site with cache enabled

Votes

# of Users Experiencing Issue
0/1
Average Importance Score
4.00

avatar frankmayer frankmayer - open - 13 Jun 2017
avatar frankmayer frankmayer - change - 13 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Jun 2017
Category Front End Plugins
avatar zero-24
zero-24 - comment - 13 Jun 2017

Make use of $this->app instead of JFactory::getApplication();

As this is a system plugin please implement that a construct method that ckecks if that var is set similar to the debug plugin. As in case of an update we had issues with that as the core overwrites itself and this var maybe not set at that part of event which would result into an error.

avatar zero-24
zero-24 - comment - 13 Jun 2017

replace unnecessary strlen() call with simple check

I have not found that? Or I have just overlooked it?

avatar frankmayer frankmayer - change - 13 Jun 2017
The description was changed
avatar frankmayer frankmayer - edited - 13 Jun 2017
avatar frankmayer
frankmayer - comment - 13 Jun 2017

@zero-24 regarding the check: will do
regarding the strlen(): I think I did that in another of my PR's and it got already merged. pls ignore ;)

avatar frankmayer frankmayer - change - 13 Jun 2017
Labels Added: ?
avatar wilsonge
wilsonge - comment - 15 Jun 2017

Looks good on review. Just want one tester for the type sensitivity thing. I think it's fine but only on quick review and don't trust myself cause a bit sleep deprived :)

avatar andrepereiradasilva andrepereiradasilva - test_item - 23 Jun 2017 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 23 Jun 2017

I have tested this item successfully on f552c01

code review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16673.

avatar frankmayer
frankmayer - comment - 28 Jun 2017

Looks good on review. Just want one tester for the type sensitivity thing. I think it's fine but only on quick review and don't trust myself cause a bit sleep deprived :)

@wilsonge It has one tester now. Do you need another one? :)

avatar frankmayer
frankmayer - comment - 13 Jul 2017

Can we have one more tester for this?

avatar frankmayer
frankmayer - comment - 3 Aug 2017

Bump @mbabker do we need another tester for those minimal changes or can it be merged as is?

avatar korneliusz401
korneliusz401 - comment - 4 Aug 2017

It has been tested successfully on site with cache enabled .


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16673.

avatar wilsonge wilsonge - close - 4 Aug 2017
avatar wilsonge wilsonge - merge - 4 Aug 2017
avatar wilsonge wilsonge - change - 4 Aug 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-08-04 10:38:40
Closed_By wilsonge
avatar frankmayer
frankmayer - comment - 4 Aug 2017

Thank you @korneliusz401

avatar wilsonge
wilsonge - comment - 4 Aug 2017

Thanks @frankmayer !

avatar frankmayer
frankmayer - comment - 4 Aug 2017

@wilsonge Always happy to contribute! ?

Add a Comment

Login with GitHub to post a comment