Skip to content

Commit 44a9c3e

Browse files
authored
fixes CodeIgniter.gitignore deleting a critical system file
After spending a lot of time finding why my app won't run, just noticed that the gitignore I copied introduced a deletion/ignore rule of an internal folder used by the framework. The current gitignore file deletes the folder `/system/Cache/*` and causes the following error when running the App from the CLI or the web server : `Class "CodeIgniter\Cache\CacheFactory" not found `; making the app unable to run. I added the following rule to fix this : `!system/Cache/*`. Note : this won't fix the bug if the system folder is renamed
1 parent 991e760 commit 44a9c3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CodeIgniter.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*/logs/log-*.php
33
!*/logs/index.html
44
*/cache/*
5+
!system/cache/*
56
!*/cache/index.html
67
!*/cache/.htaccess
78

0 commit comments

Comments
 (0)