ソースを参照

set WP Memory Limit

dev
Alej 1年前
コミット
3d766a5bdd
1個のファイルの変更5行の追加3行の削除
  1. 5
    3
      configs/wp-config.php

+ 5
- 3
configs/wp-config.php ファイルの表示

@@ -82,7 +82,11 @@ if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROT
82 82
         $_SERVER['HTTPS'] = 'on';
83 83
 }
84 84
 
85
-/* That's all, stop editing! Happy blogging. */
85
+/** Limit revisions */
86
+define('WP_POST_REVISIONS', 2);
87
+
88
+define( 'WP_MEMORY_LIMIT', '256M' );
89
+/* That's all, stop editing! Happy publishing. */
86 90
 
87 91
 /** Absolute path to the WordPress directory. */
88 92
 if ( !defined('ABSPATH') )
@@ -100,5 +104,3 @@ if(defined('IS_DEV') && IS_DEV === 'true') {
100 104
         $_SERVER['HTTPS'] = 'off';
101 105
 }
102 106
 
103
-/** Limit reivisions */
104
-define('WP_POST_REVISIONS', 2);

読み込み中…
キャンセル
保存