Auto Archiving with PHP?


(G.P.) #1

With around 30.000 page views daily, my site is already a medium traffic page, so the auto archiving function would be great.

I can use cronjobs but sadly I can’t use any ssh, so is there a way to create an archive with php? Would be really great.


(florentelectro) #2

I have the exact same question…


(kolchak) #3

You can run it manually using the API it seems (from peaking at the cron job):

http://mysite.com/piwik/index.php?module=A…#036;TOKEN_AUTH

replace $TOKEN_AUTH with you user token and do 3 times replacing $period with day, week then year.

Untested style_emoticons/<#EMO_DIR#>/smile.gif


(kolchak) #4

And you may also tweak the following settings:

OPTIMIZATION FOR HIGH TRAFFIC WEBSITE

Please change the following settings in config/global.ini.php

time_before_archive_considered_outdated = 3600

enable_browser_archiving_triggering = false