Title: Sleep function question
Last modified: August 20, 2016

---

# Sleep function question

 *  [hinhthoi](https://wordpress.org/support/users/hinhthoi/)
 * (@hinhthoi)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/sleep-function-question/)
 * I have one plugin that automatically creates many articles and publishes them
   in a short time. Because of that, there is some burden to the web server. It 
   works based on loop that each loop it creates 1 article. The result is that my
   website was suspended from server. (Luckily finally it is up again)
 * Can i put the sleep(5) inside the loop, so that an article is created in every
   5 seconds? I have tested and see that it works, but i don’t know whether the 
   server will be less burden with this method
 * Any advice is very much appreciated!

The topic ‘Sleep function question’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [hinhthoi](https://wordpress.org/support/users/hinhthoi/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/sleep-function-question/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
