Fixed .gitignore problem

.gitignore should now ignore config.php, nbproject, and cache folders,
revert if fix fails
Revert "Fixed .gitignore problem"

This reverts commit 506d9a0f50fc1ab90f17bbe60f704c749e01b5c0.