antonyvk
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pageI looked again, the wppa_upload_box() function doesn’t have any args, so you can’t directly give it current album to restrict (and accelerate) loading of the box when needed. Or perhaps are you using global variables ?
Sorry for all these questions, I try to understand how it works to help you as possible…Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pageI currently use
[wppa type=”upload” parent=”xx”][/wppa]and the var_dump result is when I test with a normal user, that’s the reason I’m surprised the query calls for all albums instead of only its album !As the shortcode contains the parent tag and album id why isn’t there any code like :
if ($tag == 'parent') $albums = "select * from wppa_albums where parent_a = '$tagid' and owner = '$currentuser'" else // tag is album $albums= "select * from wppa_albums where id = '$tagid'"(wrong code but don’t know how to explain better my idea)
Do I need to open my eyes ? It’s possible I didn’t see it 🙂
- This reply was modified 9 years, 7 months ago by antonyvk.
Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pageYes I’m on 6.6.00.014.
For the moment I have 42275 albums, with only 8339 granted parents (goal is 36k granted). So total albums in the future may be over 720M (if I consider 20k users)…
Server currently has 15Gb memory, but easily scalable.Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pageI think I found the problem :
The query at line 1624 of wppa-common-functions.php, in wppa_album_select_a() function :
"SELECT * FROM '" . WPPA_ALBUMS . "' " . wppa_get_album_order( $args['root'] ), ARRAY_AThis query populate lots of datas in $albums, then some other functions, like wppa_add_paths() are manipulating it but it’s too many…
In my case it can’t finish the foreach of wppa_add_paths(), probably because the var_dump of $albums returns me array(42275)…Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album page$alb contains only 2 elements : array(2) { [2]=> string(1) “9” [13]=> string(4) “8433” }
So the function looks like that :
wppa_album_select_a( array ( 'addpleaseselect' => true, 'checkowner' => true, 'checkupload' => true, 'path' => true, 'checkarray' => 2 > 1, 'array' => ('9','8433'), ) )I tried to var_dump it, no successfully for the moment…
Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pageI looked closer in the code, my problem seems to be at line 2286 (wppa_album_select_a() function not responding). I will look at it a bit more…
Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pagedon’t know it’s around 20, 50 or more :s
But ! I made some tests and for the moment the issue seems to be in the wppa_get_user_upload_html() function. (the page loaded perfectly when I comment line 1795 of wppa-boxes-html.php)- This reply was modified 9 years, 7 months ago by antonyvk.
Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pageI don’t know, I can’t load XD
Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pageYes, it works better 😉 but still have loading problem with upload box…
Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pageI can’t activate it. It turns, turns, turns…. apache processes consumes 100% cpu, and progressively forked new ones that also consumes all cpus… looks like an infinite loop ?
Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pageNot yet ! Just saw your previous reply about 6.6.xx ! Update in progress !
Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pageFound it ! It’s in my upload shortcode !
I use this shortcode :[wppa type="upload" parent="2"][/wppa]
But as result I have an select box for selecting the album I want to upload my photos into, instead of just selecting the parent album/current user. I have this issue when I’m connected as admin, and I often need to check pages with admin status…Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pageI wasn’t able to select all my granted albums correctly with this setting, so I did it with an SQL query (all the albums I have to grant have the same keyword in their title).
I still have a capacity issue on my frontend, but I didn’t find enough informations for you for the moment. I just know I have an apache process permanently locked with 100% cpu, and this bug disappear when I deactivate your plugin :/
Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pageI updated my wppa-settings-autosave.php to delete both select functions and it works like a charm 🙂
Now I’m waiting for more cpu on my server because of an other plugin that also has capacity issue 😉Forum: Plugins
In reply to: [WP Photo Album Plus] lot of count when accessing an album pagepassed dev and beta, but take a very long time to load backend settings because Table VIII B19.1 and B19.2 are listing all albums to move from/to. Will probably need a checkbox to display/load (or not) this setting ?