Balto Posted August 20, 2022 Posted August 20, 2022 Hello, I have the block "Clubs" in the home page of my website. I have found an issue (bug?) with that. These are the settings I have: And this is what I see: Everything correct here, but 9 minutes ago I have added a reply in the club "TEST 1", and the club "TEST 2" is still listed first. Clubs are sorted by latest activity, so TEST 1 should be ranked first. This will happen (according to my previous experience) in 30-40 minutes from the latest reply. I guess in a few minutes TEST 1 would finally get to the first position and TEST 2 to the second position, but it will be more than 30 minutes after the reply to a thread in that club. I would need this to happen in real time or maximum 1 minute after the latest reply. Is there any way I can do that? Also, a suggestion: it would be nice if the "Sort by" options in the Clubs bloc would be the same of the Topic Feed block: "Recently Updated" here means the latest reply. "Latest activity" in the club means, I guess, latest reply (99% of the times), or a user who joined the club (1% of the times). Maybe something else is considered as "activity"? Maybe a reaction? Anyway, it would be great to have the option to sort clubs just like the "sort by: Recently Updated" works for the Topic Feed block. Thank you!
Balto Posted August 21, 2022 Author Posted August 21, 2022 I have made some tests and I see no consistency at all in the order the clubs are sorted. Sometimes the order changes immediately after a reply in a thread, sometimes it does not change at all, sometimes it changes after 30-40 minutes. What it be possible to make this block similar to the Topic Feed block in the club sorting? Thanks!
teraßyte Posted August 21, 2022 Posted August 21, 2022 The widget is not cached so it shouldn't happen. Are you viewing the page as a guest perhaps? It might be the guest output caching that's blocking you from seeing the change until the cache is refreshed.
Balto Posted August 21, 2022 Author Posted August 21, 2022 12 minutes ago, teraßyte said: The widget is not cached so it shouldn't happen. Are you viewing the page as a guest perhaps? It might be the guest output caching that's blocking you from seeing the change until the cache is refreshed. No, I am logged in. It looks like there is no difference to logged and not logged users. The clubs will get in the correct position around 30-40 minutes after the latest reply.
Marc Posted August 22, 2022 Posted August 22, 2022 We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you.
Balto Posted August 22, 2022 Author Posted August 22, 2022 (edited) 2 hours ago, Marc Stridgen said: We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you. I have created a free trial environment so that there are no plugins installed, default theme, no customizations etc. https://d322828.invisionservice.com/ Club 3 latest reply: 11.38 CET Club 2 latest reply: 11:41 CET Club 1 latest reply: 11.39 CET Settings: Expected behaviour with the settings I have: Club 2 Club 1 Club 3 But as you see, at 11:43 CET this is the situation: It might update in 30-40 minutes with the correct order, or it might remain like that. While doing tests I have experienced both these situations. Anyway, something is surely wrong here. Can you replicate the issue as well? You can try adding more replies to the threads into the clubs of course. Thanks! Edited August 22, 2022 by Balto
Marc Posted August 22, 2022 Posted August 22, 2022 These would be subject to block cache, so that would not be surprising on a newly installed cloud setup. With your live one, I was looking to check what cache you had things set to Balto 1
Balto Posted August 22, 2022 Author Posted August 22, 2022 5 minutes ago, Marc Stridgen said: These would be subject to block cache, so that would not be surprising on a newly installed cloud setup. With your live one, I was looking to check what cache you had things set to Thanks, I see. I have updated the information in my client area so you can now login in the AdminCP. Maybe should I set this to Cron? Thanks!
Marc Posted August 22, 2022 Posted August 22, 2022 You should indeed set it to cron if you can do so, yes. It would then ensure you are running the tasks as often as needed. Note however that will not reduce the block cache times. It will only ensure they are run on time.
Balto Posted August 22, 2022 Author Posted August 22, 2022 Thanks, I will. 3 minutes ago, Marc Stridgen said: will not reduce the block cache times. And what is the block cache time for the clubs sorting? Can I change this settings to the minimum amount of time possible?
Balto Posted August 22, 2022 Author Posted August 22, 2022 Also, @Marc Stridgen I get this warning message when I select "Use cron": Quote When this setting is enabled you MUST ensure that the cron is set up properly. If this setting is turned on but no cron is set up it will cause significant damage to your site. You should set the cron to run the following command every minute:/opt/plesk/php/7.4/bin/php -d memory_limit=-1 -d max_execution_time=0 /var/www/vhosts/totallympics.com/httpdocs/applications/core/interface/task/task.php 032fc4e9ba9678ab3a74a4f49bc4ca5f I read "/opt/plesk/php/7.4", and 7.4 is the current PHP version I am using. What will it happen if I will update to PHP 8.0? I still have the 7.4 version because all the times I put PHP 8.0 version I have had problems (maybe related to this?). Thanks!
Marc Posted August 22, 2022 Posted August 22, 2022 If you update to 8, you would have to redo your cron accordingly. The block cache time is for all blocks. This is in System>Settings>Advanced Configuration
Balto Posted August 22, 2022 Author Posted August 22, 2022 1 minute ago, Marc Stridgen said: The block cache time is for all blocks. This is in System>Settings>Advanced Configuration This one, right? What I don't get is, why with Task Method set to "Run Automatically with Traffic (Default)", the "Topic Feed" block update (correctly) every 1 minute, and the "My clubs" block update only every 30-40 minutes? 3 minutes ago, Marc Stridgen said: If you update to 8, you would have to redo your cron accordingly. So when I will update to 8, I will have to set: /opt/plesk/php/8.0/bin/php -d memory_limit=-1 -d max_execution_time=0 /var/www/vhosts/totallympics.com/httpdocs/applications/core/interface/task/task.php 032fc4e9ba9678ab3a74a4f49bc4ca5f Correct?
Balto Posted August 22, 2022 Author Posted August 22, 2022 @Marc Stridgen Maybe is it because of this? Is it possible to lower this number from 20 minutes to 1 minute?
Marc Posted August 22, 2022 Posted August 22, 2022 There is no way in which to amend the timing of tasks unfortunately.
Balto Posted August 22, 2022 Author Posted August 22, 2022 5 minutes ago, Marc Stridgen said: There is no way in which to amend the timing of tasks unfortunately. So is that the reason why the Topic Feed block update every 60 seconds and the Clubs block every 20 minutes? Actually is not even 20 minutes because sometimes I have seen updating the order after 35 minutes. And even if I run this task manually, the position does not change after I do it.
Marc Posted August 22, 2022 Posted August 22, 2022 It will be yes. Bear in mind you have just set it up to run as cron. If they weren't running efficiently previously with traffic, they may well have simply been running late.
Balto Posted August 22, 2022 Author Posted August 22, 2022 1 minute ago, Marc Stridgen said: It will be yes. Bear in mind you have just set it up to run as cron. If they weren't running efficiently previously with traffic, they may well have simply been running late. Thanks! And I will soon try again to update my PHP version to 8.0, when I do that I will have to change: /opt/plesk/php/8.0/bin/php -d memory_limit=-1 -d max_execution_time=0 /var/www/vhosts/totallympics.com/httpdocs/applications/core/interface/task/task.php 032fc4e9ba9678ab3a74a4f49bc4ca5f Or will this be automatic? Thanks!
Marc Posted August 22, 2022 Posted August 22, 2022 You would need to go back to the cron area, and get the new command to run Balto 1
Recommended Posts