
About ProcessWire & Performance
By
Mobiletrooper, in General Support
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By muzzer
Existing PW site version 2.7.2 core running on php7.1. Site is perhaps 7 yrs old and never misses a beat. Can't speak highly enough about this solid version, but....
As new php versions are released (v8 in the next year I think?) and each seems to get quicker I'm looking at upgrading to php7.3 or 7.4 and upgrading the site to PW v3.x.
I've been away from the forums since v3 was released so don't know much about it. I guess it's stable as it's been around for ages now, but what I'm wondering is:
what are the real advantages of upgrading to v3 for a site which is actively used but with only periodic development. And what are the disadvantages if any? Is there any speed impact (good or bad) in either general site speed under 3.x or admin-use speed/ease of use? any issues with either PW version with newer php versions (>7.1) I should know about? is there any good write-ups/vids about new features etc of v3 compared to v2.7? Thank you
-
By LuisM
Hi there,
while developing a sideproject which is completly build with ProcessModules i suddenly had the urge to measure the performance of some modules 😉 as a result, say welcome to the FlowtiAppPerformance module.
It comes bundled with a small helper module called FlowtiModuleProfiler. In the first release, even though you could select other modules, it will track the execution of selected Site/ProcessModules.
This will give you the ability to gain insights how your Application behaves.
The Main Module itself will come with 2 Logging Options, Database or PW Logs. Select Database for Charts and Logs...well If you just want your profiles as a simple log file in PW.
You also could choose to dump the request profile into TracyDebugger as shown here:
Dont wonder about my avg_sysload, somehow my laptop cant handle multiple VMs that good 😄
Settings Screen
Monitoring
FlowtiLogs
again, dont look at the sysload 😄
I will update the Module in the future to give some filter options and aggregation, but for now it satisfies my needs.
I hope it is helpfull for some.
Module is submited to the directory and hosted at github
https://github.com/Luis85/FlowtiAppPerformance
Any suggestions, wishes etc. are much appreciated.
Cheers,
Luis
-
By eutervogel
Hi,
what I'm doing is this:
<picture> <source srcset="<?php echo $page->section_three->main_img->first()->size(396,710)->webp->url; ?>" type="image/webp"> <img class="p_absoulte pp_block" src="<?php echo $page->section_three->main_img->first()->size(396,710)->url; ?>" alt=""> </picture> and for some reason it sometimes becomes this:
<picture> <source srcset="/site/assets/files/1057/sektion3_bild-1.396x710.png" type="image/webp"> <img class="p_absoulte pp_block" src="/site/assets/files/1057/sektion3_bild-1.396x710.png" alt=""> </picture> It seems to be related to ->size(). When I don't use ->size() the webp Url is correct.
I'm using the image-field inside a Fieldset(Page). Could that be a problem too?
I just increased the output size by 2px and voila the webp url comes up.
I deleted all variations (webp variation is present in correct size) changed it back to the original size and again: a png url.
I also tried to rename the image and load it up agian.
...same behavoir.
Thanks in advance guys
-
By jds43
Hello,
Does anyone have experience with migrating content from Django to Processwire? Or are there any suggestions for achieving this?
-
By Brawlz
Hi,
I hope this is the correct section for my problem.
All I need is a connection to an external Database and a query gettings some data. I do this in a processwire Page-Template. I am honestly not sure if it is a problem with processwire or my code:
$host = ‚XXXXX’; $user = ‚XXXXX‘; $pass = ‚XXXXX‘; $db = ‚XXXXX‘; $port = ‚3306‘; $mydb = new Database($host, $user, $pass, $db , $port); $result = $mydb->query("SELECT * FROM char“); while($row = $result->fetch_assoc()) { print_r($row); }
Produces the following error:
Error: Exception: DB connect error 2002 - Connection timed out (in /customers/9/4/e/XXXX.de/httpd.www/wire/core/Database.php line 79)
I also tried connecting without the $port variable but got the same error.
-