Closed mbabker closed 6 years ago
I have uploaded to staging server this branch for those who can help test:
To switch to staging:
Open your file plugins/installer/webinstaller/webinstaller.php
and edit line 21:
public $appsBaseUrl = 'https://appscdn.joomla.org/webapps/';
and change the webapps
to staging
to test it.
So I only need to do what @beat suggested in order to test it? (And I can omit all the steps described by @mbabker?)
Yep, Beat's suggestion is much easier.
Okay. So after 10 minutes of clicking all the main paths seem to be working. Sometimes slowly, but still working. There are some other issues like the search results sorting (which is different than on JED), but I understand that it was outside the scope. All in all, I think it's good enough for now. Thanks @mbabker for fixing that in no time (and @beat for making testing waaaaay easier)
Clone/Download the PR branch and drop the files in your local CMS install: DONE! Discover install com_apps: DONE! Install the Install from Web plugin: DONE! Change public $appsBaseUrl in the plugin to point to your local CMS install: This URL was already present in the plugin (www\joomla-cms-staging\plugins\installer\webinstaller) so nothing to change Browse install from web: Browsed the Install from web for 5 minutes
@beat I got no strange behaviours at this point. Is this enough to test and say it was successful?
@RickR2H Thanks a lot for your help here too, confirmation that all works fine is good :smile:
Are the behaviors also better than on the normal live server ?
(e.g. it seems that for some people on live server sometimes doesn't display some categories)
When I looked on the live server last week I saw a lot of 0 byte cache files. So that's probably playing into the empty category problem. With any luck by this PR making the cache data a bit smaller that issue happens less frequently.
@beat What do you mean with "the normal live server"? Loading time of the webinstaller is now 4 seconds...
Made the change to the file Clicked a few categories Installed a few extensions All appeared no problems
One plugin would not install but it would not install without the file modified either.
@Webdongle Awesome! Thanks for the feedback!
@RickR2H The normal live server is with the unmodified webinstaller.php (with webapps folder). Live server might appear to be quite faster as with high usage its cache is more "ready" to serve.
Difficult to tell time with xampp on windows 10 it's always slow. But what I did notice is there was a significant difference loading categories that only had a few entries ... they loaded much faster than the categories that had loads of entries.
Summary:
JHttp
clientcom_apps
group versus "global" ungrouped and to only store the response body data versus the fullJHttpResponse
objectJCacheException
interface, not a blocker for deploying while the system is on 3.6 because of how PHP handles Exception catch statements)JHttp
client can't be retrieved, the response code isn't 200, or there is an error runningjson_decode()
(which would be indicative of a bad response)com_apps
category though so it won't be written anywhere)In theory this should run against 3.6.5, nothing is dependent on 3.7 except for the noted catch block but as I said that isn't blocking for deploying now. With these changes, the cache storage should be improved a bit which hopefully makes the underlying system a bit more stable.
Simplest way to test:
public $appsBaseUrl
in the plugin to point to your local CMS install