Posts

Showing posts from March, 2011

install and integrate memcached in drupal

Hi Every one, If performance is the issue for your Drupal site then one thing you are missing is memcache. This article explains you step by step process to install and memcache and how memcache helps to boost your drupal website. What is memcache ? Memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Memcached's magic lies in its two-stage hash approach. It behaves as though it were a giant hash table, looking up key = value pairs. Give it a key, and set or get some arbitrary data. When doing a memcached lookup, first the client hashes the key against the whole list of servers. Once it has chosen a server, the client then sends its request, and the server does an internal hash key lookup for the actual item data. For example, if we have clients 1, 2, 3, and servers A, B, C: Client 1 wants to set key "foo" with value "barbaz&

schedule tasks on linux using crontab

If you've got a website that's heavy on your web server, you might want to run some processes like generating thumbnails or enriching data in the background. This way it can not interfere with the user interface. Linux has a great program for this called cron. It allows tasks to be automatically run in the background at regular intervals. You could also use it to automatically create backups, synchronize files, schedule updates, and much more. Welcome to the wonderful world of crontab. Crontab The crontab (cron derives from chronos , Greek for time; tab stands for table ) command, found in Unix and Unix-like operating systems, is used to schedule commands to be executed periodically. To see what crontabs are currently running on your system, you can open a terminal and run: sudo crontab -l To edit the list of cronjobs you can run: sudo crontab -e This wil open a the default editor (could be vi or pico, if you want you can change the default editor) to let us manipu