Jump to content

benbyf

Members
  • Posts

    742
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by benbyf

  1. I'm looking for published pages that are hidden, but I would love to hear if there is a faster query to return those pages than $pages->find("{myField}=1, status=hidden") for sure!
  2. (if it is indeed it is the thing slowing things down), think my issue was i was using $pages->find("{myField}=1, include=hidden") which i've now changed to $pages->find("{myField}=1, status=hidden") I'm hoping this helps. I've also put the frequency down on the cron job... As although there maybe thousands of pages they should only really be a couple of hidden ones so need to find those as fast as possible 😕
  3. Think I've worked it out, every hour I run a cron job to check all pages to see if they need to be published (I have a publish later thing going on), which wasn't an issue years ago but now there is like 3k pages 🧐
  4. Thanks @teppo Yeah in dev tools its slow the request itself is the issue each time (but not slow all the time). So will defos look at my lazycron's and maybe the Profiler pro if it can look at specific module processes and queries then that would be awesome!
  5. Hi, Got a site with a mystery up and down performace, sometimes it takes a couple of seconds to return teh page anmd sometimes a minute!!! Just wondered if there was strategies to work out where the work is being done / what hte processes are thats causing it?
  6. Thought I'd post here how I solved my issue in the end by doing the arranging in the frontend and saving the data back to be used by the template.
  7. Thanks! Will check it out, and I guess IMagick too, as your right, I'm looking to generate images and then use them for the page's OG image
  8. Hi! I was looking into automatically creating OpenGraph (OG) images from page assets and wondered if this would be possible in PW using a php image library and a template for the image??? Little out of my depth... But basically create an image template and process a page title and image on save into it, to then be saved as an image to that page. Any thoughts would be great.
  9. F**k it dont worry, released it wont work anyways... I really need to starting talking to myself about these things before posting on here. Going to add videos to the mix too so going to have to track the order external to the imagefield order anyway 🤦‍♂️
  10. Hi @Jan Romero thanks but, im kinda lost. If I posted a list of numbers to the server say: 2,4,1,3 to represent second image should now be first, fourth should be second... and so on. How would I tel the image field to do the reorder..? Can i just get the values rearrange in the wireArray and use the set() and save()?
  11. HIIIII Was looking at the docs for the wireArray, files and images fields but cant work out the best strategy for rearranging files that already exist in the field -> I'm trying to upload images in the admin, then in the front end rearrange and save back the new order to the field. Any hope would be awesome
  12. ok I think i've solved it. gonna use https://packery.metafizzy.co/ and do the arrangement in the frontend for logged in users instead, (this means it'll be easier to mix media types and just save an order somewhere for that page)....., 🧐 fingers crossed
  13. sure, I use webm and mp4's where i can, just be nice to use images OR have some good way of dropping hundreds of images onto a page, re arrange them and add videos in the same area... which ultimately is my issue. Repeaters are good option but theres no way to quickly make LOTs of repeaters with drag and drop files... I think the best solution for me would be able to drop a load of files into a field and for it to populate a repeater filled with the same number of items filling the first image or file field it fields on each new item...
  14. Hi @horst thanks for getting back! I guess I have a very specific use case. My client uses a lot of gif’s which are bloating the front end… been migrating most images to webp and found that webp also does animation. Did a quick test and found a webp animation was roughly 10x smaller than the small gif. woudl love to allow my clients to upload and view in the admin as they do a lot of arranging of images. However, encoding an image to webp doesn’t keep any animations on the server (also the quality is worse going from giff to webp instead of jpg slides to webp). I guess I can’t see any reason why if presented with a webp upload the image field couldn’t just display as is in the backend… or maybe toggle this on in settings?
  15. Tested on PW 3.0.148 on the image field and the site is able to upload and present the webp image on the front end, but in the admin I get a blank transparent image with the warning [image url].webp - not a supported image type Just wondered if the image field in new PW versions had a fix for this or not?
  16. Hi! I did a recent test and found the file size save from gif to webp was about 10x for comparable look. I tested using teh google CLI as linked above but wondered if it was possible to have the processwire $image->webp() method also produce a animated webp? I'm only getting static images out when tested... do I need to install something else on the server or are we not there yet?
  17. This is amazing thank you!
  18. there happen to be a module to grab the path of a image to be rendered by PW and change to another, e.g. to use on dev site so as not to have to download all the same images (which there are lots) from the live site for testing?
  19. Thanks, I think there was several things, I hadn't verifed the email account properly, I found the PW logs and sorted it out, then found that sendgrid simply isn't logging anything, not a peep... emails are getting sent so i suppose it just takes a while to register on their stats or something but its really strange.
  20. these other ones havent been touched on 7 or 9 years :(
  21. Hi Hi, trying to use this module with Snedgrid but seem to be un able to know if the communication is happening... I've set up an account, verified the domain and email address, set up an API key and adding the code as follows but cant seem to get any emails or activity on sendgrid... anything missing or is this module no longer compatible? $mail = $modules->get('WireMailSendGrid'); $mail->to("******@gmail.com"); $mail->from("site@*********"); $mail->subject("test"); $mail->bodyHTML("hello"); $success = $mail->send();
  22. Upgrading from PW 2.7 to 3.0.x and tried several tagged versions of 3 and keep getting Error: Class 'ModuleJS' not found. Changed folder permissions, but still getting it. Happen to have any leads to how to resolve?
  23. ok, so somehow its working.... fingers crossed, not sure what but did a mix of all the settings and something has started working with one of the combinations... FML i hate email also this was really useful by the way
  24. okkkkk turns out that using mail() sends fine but wiremail() does not 😞 @horst any thoughts on why this might be the case?
  25. so theres a mailbox set up on the server and I'm connecting to it to send from the PW site via wiremail
×
×
  • Create New...