Performance of nested shortcode
-
Hello!
First of all big thanks for this plugin. I consider it the best framework for building database apps in WordPress. It’s really great.I have recently wrote this nested shortcode which is reffering to diffrent forms:
echo do_shortcode('[cfdb-html form="zrejestruj_material" filter="projekt=1451959921.9006" orderby="submit_time DESC" limit="' . $startrow .',20" search="'.$szukaj.'"]<tr><td style="min-width: 100px !important;"><center><a href="https://xxx/?r=${wybraneid}&pesel=${pesel}">[barcode text="${wybraneid}" size="10" text_size="8" codetype="CODE128"]</td><td style="vertical-align:middle !important"><a href="https://xxx/?r=${wybraneid}&pesel=${pesel}"><b>${wybraneid}</a></b></center></td><td style="vertical-align:middle !important"><a href="https://xxx/?r=${pesel}"><font size="2">[cfdb-value form="dodaj_pacjenta" show="nazwisko,imie" filter="PESEL=${pesel}" limit="1"]</font> (<b>${pesel}</b>)</a></td><td style="vertical-align:middle !important; min-width: 50px !important;">[cfdb-value form="wyniki" show="wynik" filter="material=${wybraneid}" search="C-peptyd" limit="1"]</td><td style="vertical-align:middle !important; min-width: 50px !important;">[cfdb-value form="wyniki" show="wynik" filter="material=${wybraneid}" search="anty-GAD" limit="1"]</td><td style="vertical-align:middle !important; min-width: 50px !important;">[cfdb-value form="wyniki" show="wynik" filter="material=${wybraneid}" search="anty-IA2" limit="1"]</td><td style="vertical-align:middle !important; min-width: 50px !important;">[cfdb-value form="wyniki" show="wynik" filter="material=${wybraneid}" search="IA/IAA" limit="1"]</td><td style="vertical-align:middle !important; min-width: 50px !important;">[cfdb-value form="wyniki" show="wynik" filter="material=${wybraneid}" search="ICA" limit="1"]</td><td style="vertical-align:middle !important; min-width: 50px !important;">[cfdb-value form="wyniki" show="wynik" filter="material=${wybraneid}" search="ZnT8" limit="1"]</td><td style="vertical-align:middle !important; font-size: small; word-break: break-all;">${uwagi}</td><td style="vertical-align:middle !important; font-size: small;">P:${data-pobrania}<br />O:${data-otrzymania}</td><td style="vertical-align:middle !important; font-size: small">[cfdb-value form="dodaj_pacjenta" show="osrodek" filter="PESEL=${pesel}" limit="1"]</td><td style="vertical-align:middle !important; font-size: small"><a href="https://xxxx/?pesel=${pesel}&material=${wybraneid}" class="konsta_button">+</a></td><td style="vertical-align:middle !important; font-size: small"><a href="https://xxx.php?material=${wybraneid}" class="konsta_button hs-rsp-popup iframe" target="_blank">Generuj</a><br /><a id="wydane${wybraneid}" href="javascript:void(0)" style="font-size:small" onclick="wydanozmien(\'${wybraneid}\')"><b>NIE WYDANO</b></a></td></tr>[/cfdb-html]');
Unfortunately, I’m struggling with performance issue (it requiers more than 15 seconds to render), as my cf7submit table now reaches like 100000 records. I would like to ask if you see any possibility of speeding up this nested shortcode. Unfortunately adding unbuffered option even slows down its performance. My data changes often.https://www.ads-software.com/plugins/contact-form-7-to-database-extension/
- The topic ‘Performance of nested shortcode’ is closed to new replies.