Art Of Eclipse

« Home » « About » « Github »

edit content in drupal issue with lock message.

Drupal have a good command line interface “CLI” called Drush some time drupal cache behaive in diffrent ways, in one of the projects that I worked on I have a problem with entitycache module, and to solve this issue I had to clear cache everytime I edit and save node, during this I found that I can execute this command “php-eval” :

drush php-eval "entitycache_flush_clear_cache( 'node', nid, TRUE )"

git log and show commits and export theme.

Every wonder how to get a nice formatted log in git here is how to do it with –since and –pretty options :

git log --since='last month' --pretty=format:'%h,%an,%ar,%s'

the above example display the hash of you commit, the author name, commit time “ago format”, and the commit message.