Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


benbyf last won the day on July 18 2016

benbyf had the most liked content!

Contact Methods

  • Website URL

Profile Information

  • Gender
    Not Telling
  • Location
    Bristol, UK

Recent Profile Visitors

40,856 profile views

benbyf's Achievements

Hero Member

Hero Member (6/6)




Community Answers

  1. I also found that my digital ocean droplet was getting to 100% CPU just after publishing new articles... going to increase the Ram / CPU for now as well as more optimisations
  2. 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!
  3. (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 😕
  4. 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 🧐
  5. 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!
  6. 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?
  7. 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.
  8. 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
  9. 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.
  10. 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 🤦‍♂️
  11. 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()?
  12. 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
  13. 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
  14. 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...
  15. 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?
  • Create New...