Skip to content
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

[Enhancement] Speedup the Feed-Dashboards #13513

Closed
wants to merge 3 commits into from
Closed

[Enhancement] Speedup the Feed-Dashboards #13513

wants to merge 3 commits into from

Conversation

mindeffects
Copy link
Contributor

What does it do?

Speeds up the dashboard widgets for the rss feeds

Why is it needed?

More speed and less overhead work if the feeds are turned off anyway.

Related issue(s)/PR(s)

none

Copy link
Contributor

@lawrenz1337 lawrenz1337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that leaving news disabled by default is a correct decision

@@ -567,7 +567,7 @@
$settings['feed_modx_security_enabled']= $xpdo->newObject('modSystemSetting');
$settings['feed_modx_security_enabled']->fromArray(array (
'key' => 'feed_modx_security_enabled',
'value' => '1',
'value' => '0',
Copy link
Contributor

@lawrenz1337 lawrenz1337 Jul 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would you still leave default value as 0. Your previous PR was closed because of this or am I misreading something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is me and git only slowly getting friends. Sorry. :-(
Actually I went back from "off/0" to "on/1", so the file is as was before I made changes. I reverted.

@rtripault
Copy link
Contributor

Besides the fact you are disabling the feeds as default, just wanted to point that this kind of optimization has already landed for 2.6 (see #13507). So not sure if we would want this in 2.5

@@ -549,7 +549,7 @@
$settings['feed_modx_news_enabled']= $xpdo->newObject('modSystemSetting');
$settings['feed_modx_news_enabled']->fromArray(array (
'key' => 'feed_modx_news_enabled',
'value' => '1',
'value' => '0',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I rejected this change in previous PR :) Please change it back to enabled by default.

@@ -567,7 +567,7 @@
$settings['feed_modx_security_enabled']= $xpdo->newObject('modSystemSetting');
$settings['feed_modx_security_enabled']->fromArray(array (
'key' => 'feed_modx_security_enabled',
'value' => '1',
'value' => '0',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I rejected this change in previous PR :) Please change it back to enabled by default.

@lawrenz1337
Copy link
Contributor

@rtripault I think he forgot to change the branch and had previous commit there with feeds turned off

@theboxer
Copy link
Member

theboxer commented Jul 7, 2017

@rtripault Yes, we do want them in 2.5.x, please cherry pick the change to this branch as well.

@theboxer theboxer closed this Jul 7, 2017
@theboxer theboxer self-assigned this Jul 7, 2017
@rtripault
Copy link
Contributor

Well, the mentioned PR does more than just "speeding up", it loads the feeds using AJAX... i don't think that qualifies to be cherry-picked into 2.5

@theboxer
Copy link
Member

theboxer commented Jul 7, 2017

I'd say it's a bug that it doesn't load via AJAX :P

@theboxer
Copy link
Member

theboxer commented Jul 7, 2017

btw. just messing with you, leave it just there :)

@rtripault
Copy link
Contributor

Too late, already merged 2.x back into 2.5

@theboxer
Copy link
Member

theboxer commented Jul 7, 2017

well I hope you didn't merge the whole branch

@rtripault
Copy link
Contributor

Nah... was messing back with you... i'm not involved with 2.5 🙌

@theboxer
Copy link
Member

theboxer commented Jul 7, 2017

lol, well played :P

@gpsietzema
Copy link
Contributor

#modxbughunt #3points to @mindeffects

@sonicpunk
Copy link

#modxbughunt #1point to @theboxer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants