Jump to content

Sergio

Members
  • Posts

    531
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Sergio

  1. Yes, you can set the name for children of a page, editing the parent template "Family" settings. See: http://processwire.com/api/modules/process-template/
  2. Well, things look ok to me, I can access the site fine. It appears there's no problem with your .htaccess after all as you said ProCache already edited it. Maybe it's a cache from your browser.
  3. Check your .htaccess file, it seems ProCache didn't have permission to update it.
  4. I asked you to check because you could have developed your own modules and maybe there was a culprit there. Those you listed are ok! The memory usage log you have doesn't show which all the processes names running, so it won't help much. Are you using Apache and is it serving a lot of static resources (CSS/images/videos etc)? Apache can use a lot of RAM in some cases compared to Nginx. But your ProCache settings seems correct. I agreed with @szabesz, ProfilePro and Ryan could help you a lot! The other possibility is to ask your helpdesk to install a better monitoring tool like NewRelic. It helped me a lot on a Wordpress site in the past.
  5. 1. Be careful, the reason why PW uses MyISAM by default is that PW requires it for full-text search and this is only available for InnoDB if you're using MySQL version 5.6 (or 5.7, I think) and most servers don't have that version yet. So check it! 1.1. OK! 2. MariaDB was created as an open source alternative, after Oracle bought MySQL years ago. It's fully compatible as far as I know. The suggestion to move the database to its own VPS is to have more RAM available to it if that's the case. A good write-up about it: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql 3. Are you saving a field on a page when a user access it, for instance, like a page-views counter? If not, Procache should not reset the page's cache status in most scenarios. 4. I guess it's executed only one time, per page, BUT, check your server RAM usage. 5GB is a good amount, but maybe MySQL is crazy on it and making the server closing some connections to it (I'm guessing).
  6. Also, look for modules that you have installed. Have any suspects there?
  7. 1. Processwire default installation uses MyISAM as the engine which has the disadvantage of locking the entire table during a write operation. This can cause bottleneck issues in some cases. But if you are running a up-to-date MySQL version, you can change it to InnoDB to have better performance. BUT I cannot say that it will solve the problem just by doing this. Which version are you using? 1.1. And which PW version? 2. It can help to use MariaDB instead of MySQL as they say it uses less RAM, but moving the database to a second VPS will improve a lot. 3. Procache should help A LOT on the performance, as it bypasses PHP and MySQL altogether unless you're not using it right. Are the users logging in for instance? 4. Just of curiosity, why are you using a custom image processing and not PW built-in methods?
  8. Reading queries are lighter than writing ones, so it seems odd that you're having such problem, but how many find()'s has the page in question? This seems to be a problem with the server where the database is running. Are you monitoring its ram/cpu/io?
  9. Yes, ask them to install the locales for all languages that you'll need.
  10. Is the Turkish locale installed on the system? You need to install it if not.
  11. What did the trick for me was editing a core file like @abdus suggested:
  12. The error you saw just after the upgrade was regarding Set Locale and not the language files themselves. So, not worry about them (they are located at /assets/files/*language id*/file.json See this thread:
  13. Did you change the extension of the language file to .UTF8 instead of the original .json? If yes, change it back. And delete the assets/cache folder and try again.
  14. Try this (not tested): $recent_items = 3; $items_per_page = 10; $most_recent_news = $pages->find("template=news, parent=1027, limit=' . $recent_items . ', sort=-publish_from"); //3 most recent news foreach($most_recent_news as $post) { ///markup } $news = $pages->find("template=news, parent=1027, 'id!=' . $most_recent_news . ', limit=' . $items_per_page . ', sort=-publish_from"); //List of next 10 foreach($news as $post) { ///markup } echo $news->renderPager(); //render pagination
  15. Try removing the IDs of the 3 first items from the query, like on this example by @tpr:
  16. Actually, thinking about it more, this approach will only be good if are you planning to have other content on each month, like a page image, a description, etc. If you only need to list all the dates where an event can occur, maybe it's better to use an Option field or the Textarea Profield.
  17. I prefer the second approach, where the dates are what organize the events, so you can have something like this on the tree: Events --- Calendar ------ 2017 ---------- January (with page field to reference all events. And using https://modules.processwire.com/modules/connect-page-fields/ will help a lot) ---------- February... ------ 2018 --- Event 01 (with page field to reference all dates. And using https://modules.processwire.com/modules/connect-page-fields/ will help a lot) --- Event 02 ... ---- So you can have URLS like: List all events of 2017 – example.com/calendar/2017 Show an event – example.com/event-title (the URL should not show the date as the event can happen anytime)
  18. There is! As @Robin S suggested, set the family relation for the templates and set a value on the "Name format for children" field.
  19. This may help:
  20. Sergio

    CDS Service

    Very nice work, Andreas! And the admin looks great too! One suggestion: consider enabling http/2 on the web server as you are already using SSL. It will help a lot on reducing the assets download time.
  21. Great additions, @tpr !! The translation workaround can be also useful when you're creating a site that initially isn't multilanguage, but will be in the future, so you can add the translations strings even if the backend doesn't have the multilanguage modules setup yet.
  22. Very strange indeed, but I don't think they install bower for you. Are you sure you haven't installed it before for other projects? Anyways, don't lose your head over it. The differences between what can be installed are these: npm install foundation-sites This command will install only the CSS framework, you'll need to compile the Sass yourself. As their documentation says, you can use Bower OR npm. But, to install all the requirements to compile the Sass files (using node-sass), you should use their cli like below. This is useful if you do not have gulp setup yet for your project assets. npm install --global foundation-cli And, the final option, using Zurb template, which I recommend only if you are starting a new project and want to use their Panini library to build the pages statically and have an HTML prototype very quickly to show to a client and after their approval integrate with PHP. foundation new --framework sites --template zurb Be aware that it will install a lot of stuff!
  23. @FrancisChung, it sounds like a good idea, but I think I saw something like that before but couldn't find it. Although I've found a quiz on how to choose a JS framework, many questions can be adapted to create a new quiz using https://www.qzzr.com as well. Take a look: https://code.tutsplus.com/articles/quiz-choose-the-right-front-end-javascript-framework-for-your-project--cms-27739 And, maybe you haven't seen these two comparisons: https://www.vermilion.com/responsive-comparison/ http://usablica.github.io/front-end-frameworks/compare.html They can help a lot.
  24. I really think that using frameworks for medium to complex projects can help a lot, reducing significantly the time required when dealing with browser issues. I can't see a REALLY good reason, from a technical and a business point-of-view, not to use one as nowadays as almost all of them have generally good documentation, are battle-tested in all major browser versions. I really don't want to remember you how it was like in the days of testing a site over and over again in Netscape and IE. When I'm planning a project I decide which framework to choose based on these questions: 1. Will the project have many different pages layouts? 2. The client's brand require a custom design? Meaning, will the developer spend a lot of time creating a layout that's specific for the project, or the project can have a more default layout (based on the framework's default styles/components) 3. How much time/budget do I have to work on the project? 4. In the future, will be other people maintaining the project of just me? And if so, are we going to be thankful as I used a framework with good docs or should I expect a desire to break my (own) knees with a baseball bat? The choices can be, for instance: Zurb Foundation – for projects that require a lot of different pages down the road and a lot of customization. And I always use the Foundation Stack to have maximum control of the settings. Foundation is, like they said, the most advanced framework out there. Twitter Bootstrap – If I'm creating something with Laravel and it's an internal project, tool, or just a prototype, as the Laravel community have a lot of things already done using Bootstrap that can help. UIKIT – If the project can benefit from its more opinionated designed elements, meaning: can I stick with the defaults and do just a little customization and call it a day? --- Unless your project really needs to have the smaller CSS/JS footprint possible, like if you are targeting some users with crappy 2G connections and/or old browsers, you can go with a framework like the above. I used a lot of Foundation's CSS components on ricardo-vargas.com and the CSS is less than 30kb gzipped. --- For personal projects, I usually search around and give smaller frameworks like Tachyons, Kube, Bulma a try as it's fun!
×
×
  • Create New...