Rewrite People pages
complete
Amrayu78
complete
Amrayu78
Max Romanchenko: Hi Max, not sure if you're working on people pages yet, but the ALL tab is showing Last Updated titles first, it should be sorted by most recent release date at the top. Thanks!
Max Romanchenko
Amrayu78 Hi Duong, It's my fault, sorry, I've already restored the old view...
It's all part of the enhancement experiments.
Yes, I've been working on different methods to speed up people's pages these days. I finished the update yesterday, but the result was not so impressive. Now I'm looking for another way, I'm going to try to store the drama/movie/special participation data directly in the person's page. I have a lot of fixing to do in order to do that. I've already started this, and will keep you updated.
Right now, the page loading is already better than before, but I'd better revert back to the previous slow view for now.
Amrayu78
Max Romanchenko: Hi Max, no worries. You can change it to what you had before if you want. Just wanted to flag the issue in case you didn't know. I'm fine with whatever you can come up with! Thank you.
Amrayu78
Max Romanchenko: Here's the people page ticket. This isn't super high priority at the moment. You can work on it after fixing the toolset relationships that's causing critical errors on the site.
Max Romanchenko
Amrayu78 Hi Duong,
I'm happy to report that on my third attempt I was able to get people pages to load much faster without using pagination or caching. This required exporting, post-processing and importing updated data. Thanks to your help I was able to accomplish this. I also added new code that works for both backend and frontend (while adding and removing a person to a post) and a new “person_data” field for the person that stores a serialized array needed to display the data on the person's page, for example
Array
(
[0] => Array
(
[intermediary_id] => 1001115
[parent_id] => 35596
[relation] => crew-drama
)
[1] => Array
(
[intermediary_id] => 1001116
[parent_id] => 44119
[relation] => cast-movie
)
)
This retrieves all the data of the relation ([intermediary_id]), the drama/movie/special ([parent_id]) and the type of relation (cast,crew).
I wrote the table output in php and replaced the view in the person template with the [person-data] shortcode. Unfortunately it is not possible to do this with Toolset View.
Check, please.
Amrayu78
Max Romanchenko: Thank you Max! Cat and myself will test it thoroughly today. I tested a little bit last night and I've noticed a dramatic increase! Thank you so much for this custom solution.
So from now on, if we add people to cast/crew this new table will also be updated, correct?
Max Romanchenko
Amrayu78 You're welcome, hopefully this will help avoid people's page load timeouts and improve the user experience of the site.
Yes, you are absolutely right. All changes will be automatically synchronized. I have tested this on a test person, but I will wait for your feedback after testing it out.
Amrayu78
Max Romanchenko: Great! Thanks for confirming this. I didn't get a chance to test properly yesterday.
Can you change the permission of people pages so it's available to guests to view the page now? I think this will be a good stress test on the server. Thanks.
Max Romanchenko
Amrayu78 Hi Duong, I've made people's single pages available to guests. Check it out, please.
Amrayu78
Max Romanchenko: I can see them now. Thanks!
A minor fix. Let’s move the post type badge next to the country badge and get rid of the type column. Users can click the separate tabs to filter/sort by type already.
Max Romanchenko
Amrayu78 That's a nice improvement! Done.
Amrayu78
Max Romanchenko: Thank you! Closing this out now.