10 things WordPress Plugin developers shouldn’t do.
Here are 10 things you shouldn’t do as a wordpress plugin developer:
- ini_set(‘memory_limit’,’16M’);
- ini_set(‘memory_limit’, ’32M’);
- ini_set(‘memory_limit’, ’64M’);
- ini_set(‘memory_limit’, ’128M’);
- ini_set(‘memory_limit’, ’256M’);
- ini_set(‘memory_limit’, ’512M’);
- ini_set(‘memory_limit’, ’1024M’);
- ini_set(‘memory_limit’, ’2048M);
- php_value memory_limit 64M
- php_value memory_limit 128M
Quite simply, don’t blindly allocate RAM to a process without checking if the system can have it. A server we deployed recently had 512mb of RAM and found a plugin allocating 256mb of this to the PHP process. No wonder the site was falling over with more than 10 visitors.
No comments yet