PERF: check PHP memory_limit and deactivate cache adds if reached

(will increase SQL requests...)