Z
Z
zkweb2019-08-01 15:35:45
MODX
zkweb, 2019-08-01 15:35:45

Long running pdoPage + Gallery query, how to solve?

Prints time spent on database requests: 0.3285 s
Prints number of database requests: 1276
Prints time spent on PHP scripts: 6.0225 s
Prints total time spent on page generation: 6.3510 s


The album that is trying to open contains 1200 pictures.
How can work be optimized?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zkweb, 2019-08-01
@zkweb

I decided this: I
made a snippet to check $_GET['galAlbum'] and check it like this:
[[ If? &subject=`[[!galleryStatus]]` &operator=`EQ` &operand=`0` ...
solved my problem )
[[!If? &subject=`[[!Gallery]]` &operator=`isempty` &then=`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question