Camen Design Forum

Delete

(Leave this as-is, it’s a trap!)

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE: PHP and filesystem efficiency?

JJ

Actually - another filesystem question now that I think about it, if anyone is willing: If two users visit the site and end up overwriting the same cache file at the same time, isn't there a possibility the both of them writing to the file at the same time could corrupt the data? Is it wise to use flock() or LOCK_EX in the file_put_contents call? Again, I'm not an expert when it comes to filesystems, so I apologize if this is a stupid question.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn