? Success

User tests: Successful: Unsuccessful:

avatar MrBenGriffin
MrBenGriffin
16 Apr 2014

JController’s getView key was way too liberal. when getView had already been used for a view, eg comContent, everything else was ignored and the previous cache entry was being returned.

The revision now uses correct relevant parameters for each view.

avatar MrBenGriffin MrBenGriffin - open - 16 Apr 2014
avatar MrBenGriffin
MrBenGriffin - comment - 16 Apr 2014

Joomla issue tracker #32989

avatar zero-24
zero-24 - comment - 16 Apr 2014
avatar MrBenGriffin
MrBenGriffin - comment - 16 Apr 2014

zero - yea, thanks. The tracker 'crashed' (no database 500 error) when I posted 33623 and i used my old reference by mistake.. (I really do try to get things correct!) There is the 'crashed' tracker at #33622

avatar MrBenGriffin MrBenGriffin - change - 16 Apr 2014
Title
Improved the cache-key for JController Legacy
[#33623] Improved the cache-key for JController Legacy
Labels Added: ? ?
avatar b2z
b2z - comment - 26 Jul 2014

@test successful

How I tested it - put the code below to com_content/controller display() function:

$config['layout'] = 'default';
var_dump($this->getView('article', 'html', 'ContentView', $config));

$config['layout'] = 'custom';
var_dump($this->getView('article', 'html', 'ContentView', $config));

$config['layout'] = 'default';
var_dump($this->getView('article', 'feed', 'ContentView', $config));

$config['layout'] = 'custom';
var_dump($this->getView('article', 'feed', 'ContentView', $config));

$config['layout'] = 'default';
var_dump($this->getView('article', 'html', 'ContentView', $config));

Notice that in first 4 cases different objects are returned and in 5th case the same object as in 1st case.

Still I am not sure is it B/C or not. Looks like it is :+1:

avatar brianteeman brianteeman - close - 27 Jul 2014
avatar brianteeman
brianteeman - comment - 27 Jul 2014

Closing this in favour of #4014

avatar brianteeman brianteeman - change - 27 Jul 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-07-27 15:44:11
avatar brianteeman brianteeman - close - 27 Jul 2014
avatar b2z
b2z - comment - 27 Jul 2014

Thanks @MrBenGriffin for contribution.

Add a Comment

Login with GitHub to post a comment