| 55 | === Python Egg Cache |
| 56 | |
| 57 | The [TracInstall#egg-cache egg-cache] can be configured using an `os.environ` statement in `trac.cgi`, as shown above. |
| 58 | To do the same from the Apache configuration, use the `SetEnv` directive: |
| 59 | {{{#!apache |
| 60 | SetEnv PYTHON_EGG_CACHE /path/to/dir |
| 61 | }}} |
| 62 | |
| 63 | Put this directive next to where you set the path to the [TracEnvironment Trac environment], i.e. in the same `<Location>` block. |
| 64 | |
| 65 | {{{#!apache |
| 66 | <Location /trac> |
| 67 | SetEnv TRAC_ENV /path/to/projenv |
| 68 | SetEnv PYTHON_EGG_CACHE /path/to/dir |
| 69 | </Location> |
| 70 | }}} |
| 71 | |
| 72 | |
| 73 | |