Local Drupal instance was getting slower and slower over time, to the
point where any click would take at least 10 seconds to process. I
enabled Drupal's DB tracing but nothing obvious showed up in the logs. I
couldn't find anything wrong with MySql either. The performance of the
hosted version of Drupal seemed to be ok so I chalked it up to some
weird environment issue.
While scanning the php.ini file for a different issue, I happened on the realpath
cache variables. I found a few articles explaining what they did and
figured it was worth a shot. After I increased these values, the local
server finally became responsive again. What joy! I have a feeling that
all Drupal installations should use larger values. Here's what I used:
; Determines the size of the realpath cache to be used by PHP.This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; realpath_cache_size=16k
realpath_cache_size=1m
; Duration of time, in seconds for which to cache realpath information for a given
; file or directory. For systems with rarely changing files, consider increasing this
; value.
; realpath_cache_ttl=120
realpath_cache_ttl=300
分享到:
相关推荐
Drupal 6 Performance Tips
The guidelines in this book help you through the transition by demonstrating which programming practices conform to the "Drupal way," and which don’t. Discover what’s new in Drupal 8 and learn how...
You will then use Drush to apply a theme to Drupal, customizing everything to your liking, before publishing your work to the world. The book also covers some more advanced topics that beginners ...
Drupal 8 Explained is for people who want a fun and clear introduction to Drupal and requires absolutely no experience with Drupal, content management, site construction, programming, scripting, or ...
Whether you're an experienced Drupal developer looking to expand your skills, a systems administrator managing a Drupal project, or a PHP developer new to Drupal, Enterprise Drupal 8 Development will ...
With more and more organizations looking to build engaging digital experience for their stakeholders, the Drupal Content Management System offers a mobile-first platform with native support for ...
You will then use Drush to apply a theme to Drupal, customizing everything to your liking, before publishing your work to the world. The book also covers some more advanced topics that beginners ...
Programmers.Guide.to.Drupal
The book also builds practical examples of common Drupal sites, such as a company website, a community website, and a commerce website, that you can take and expand on to create your own Drupal 8 ...
[The.Definitive.Guide.to.Drupal.7(第1版)].(The.Definitive.Guide.to.Drupal.7).Benjamin.Melancon.文字版.pdf
Several projects point to a decoupled future for Drupal, including the Contenta CMS and work to modernize Drupal’s JavaScript using React. Begin learning about these and other exciting developments ...
In his spare time, he runs webomelette, a Drupal website where he writes technical articles, tips, and techniques related to Drupal development. Table of Contents Developing for Drupal 8 Creating ...
drupal的addtoany模块,支持drupal6,可以方便的订阅、收藏或者通过email发送给其他朋友们,是个推广的好帮手。
What you'll learn What Drupal is and why you should use it How to install a basic Drupal web site from scratch How to create content in your new Drupal web site How to manage users on your new Drupal...
The book will show you techniques and tools to help you improve the look and feel of any Drupal 6-powered website Starting from the basics of theme setup and configuration, you will learn about the ...
The book also builds practical examples of common Drupal sites, such as a company website, a community website, and a commerce website, that you can take and expand on to create your own Drupal 8 ...
Drupal is a powerful, free system that anyone can use in order to create their own website. With such a powerful tool at your fingertips there is no longer any need to pay professionals to design a ...
This book will give you a clear, concise and, of course, practical guidance to take you from the basics of creating your first module to developing the skills to make you a Drupal developer to be ...