if tmpfs for cache is full, no cache file will be created in tmpfs. however, lsws should continue to serve as if cache being disabled (not enabled). 503 error is likely due to something else. can you paste here anything in error.log around the time when 503 error occurs?

also is the "restart" in "throwing 503 which leads to restart" referring to LSWS restart or PHP restart?