PHP Ajax setInterval filling apache access.log

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



PHP Ajax setInterval filling apache access.log



I have some index.php page wherein one of the section I push data from one of ajax files. I use this script to update that column every 5 sec. This is working ok, but I notice that my apache access log file is getting really huge (about 13GB). all lines are that refresh access from ajax file.


<script type="text/javascript">
$(document).ready(function()
setInterval(function ()
$('#show').load('php/index_tls_refresh.php')
, 5000);
);
</script>



The goal here is that I wanted to create some news system that would be automatically updated (like facebook). Any suggestions for doing this in a proper way?
I am using this on XAMPP server in a closed localhost network (our company offices)





Can Websockets help?
– Madhan Varadhodiyil
Aug 10 at 20:16





Rotate your logs?
– Jay Blanchard
Aug 10 at 20:21





Webaocket i must study, never use it. And about rotating the log, i know that apache have some build in function for rotation logs(rotatelogs) but dont know how to set it up ad running on Windows based server
– rtstorm
Aug 10 at 20:28





try a gaagle with logrotate and windows keywords .... plenty of stuff out there.
– YvesLeBorg
Aug 10 at 20:48


logrotate


windows





Ok thanks, but i think that there is a better way to create news sytem. I only want to hear another opinio for news system. Sad that i have -2 score
– rtstorm
Aug 10 at 20:50










By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard