? ? Pending

User tests: Successful: Unsuccessful:

avatar csthomas
csthomas
21 Feb 2017

Summary of Changes

Alternative solution for #14046

Instead load all libraries as it was done in previous PR this PR load only one and cache it alone.
Introduce a new method loadLibrary($element) and deprecate _load($element) method.

Testing Instructions

The same as in previous PR.

Documentation Changes Required

Document the deprecation.

avatar csthomas csthomas - open - 21 Feb 2017
avatar csthomas csthomas - change - 21 Feb 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Feb 2017
Category Libraries
avatar csthomas csthomas - change - 21 Feb 2017
Labels Added: ?
avatar csthomas csthomas - edited - 21 Feb 2017
avatar joomdonation joomdonation - test_item - 22 Feb 2017 - Tested successfully
avatar joomdonation
joomdonation - comment - 22 Feb 2017

I have tested this item successfully on 2b91bb5

Tested with both cache on and off. Everything is working as expected.


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 Feb 2017

@joomdonation can you please write how you tested cause i don't understand #14046-instructions.

avatar csthomas
csthomas - comment - 24 Feb 2017

I have tested by interactive console #14046 (comment) which may be not available on a lots of php installs.

But you can open your template index.php file and paste:

print_r(JLibraryHelper::getLibrary('phpass', true));
print_r(JLibraryHelper::getLibrary('fof', true));
print_r(JLibraryHelper::getLibrary('phputf8', true));

// Repeat again to test data from cache
print_r(JLibraryHelper::getLibrary('phpass', true));
print_r(JLibraryHelper::getLibrary('fof', true));
print_r(JLibraryHelper::getLibrary('phputf8', true));

And test it with cache enabled and disabled. Result on page should be the same.

Optional with cache enabled you can open page a few times to check whether the cache is reused and does not recreated each time.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 Feb 2017

I have tested this item successfully on 2b91bb5


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 24 Feb 2017 - Tested successfully
avatar jeckodevelopment jeckodevelopment - change - 24 Feb 2017
Status Pending Ready to Commit
avatar jeckodevelopment jeckodevelopment - edited - 24 Feb 2017
avatar jeckodevelopment
jeckodevelopment - comment - 24 Feb 2017

RTC


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

avatar rdeutz rdeutz - change - 24 Feb 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-02-24 19:02:46
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 24 Feb 2017
avatar rdeutz rdeutz - merge - 24 Feb 2017

Add a Comment

Login with GitHub to post a comment