Skip to content

Commit 9994e81

Browse files
committed
Remove PHP memory limit because it can cause issues
1 parent 37822d2 commit 9994e81

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

.env.example

+1-8
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,8 @@ WP_POST_REVISIONS=5
3535

3636
EMPTY_TRASH_DAYS=7
3737

38-
###############################
39-
# PHP configuration
40-
###############################
41-
42-
WP_MEMORY_LIMIT=64M
43-
4438
###############################
4539
# Plugins configuration
4640
###############################
4741

48-
WPCF7_AUTOP=false
49-
FS_METHOD="direct"
42+
WPCF7_AUTOP=false

wp-config.sample.php

+1-9
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
define( 'WP_DEBUG', getenv( 'APP_ENV' ) === 'development' ? true : false );
9999
define( 'JETPACK_DEV_DEBUG', getenv( 'APP_ENV' ) === 'development' ? true : false );
100100
define( 'WPCF7_AUTOP', getenv( 'WPCF7_AUTOP' ) );
101-
define( 'FS_METHOD', getenv( 'FS_METHOD' ) );
101+
define( 'FS_METHOD', 'direct' );
102102

103103
/**
104104
* Define home and site url
@@ -121,14 +121,6 @@
121121

122122
define( 'EMPTY_TRASH_DAYS', getenv( 'EMPTY_TRASH_DAYS' ) );
123123

124-
/**
125-
* Increase PHP memory limit
126-
*
127-
* This might not work for some hosting providers
128-
*/
129-
130-
define( 'WP_MEMORY_LIMIT', getenv( 'WP_MEMORY_LIMIT' ) );
131-
132124
/* That's all, stop editing! Happy blogging. */
133125

134126
/* Absolute path to the WordPress directory. */

0 commit comments

Comments
 (0)