Skip to content

Commit

Permalink
I think it somehow makes sense to start a session in CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Feb 20, 2014
1 parent 23936f1 commit c2e87b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/CronArchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static public function getUsage()
--force-all-periods[=seconds]
Limits archiving to websites with some traffic in the last [seconds] seconds.
For example --force-all-periods=86400 will archive websites that had visits in the last 24 hours.
If [seconds] is not specified, all websites will visits in the last ". CronArchive::ARCHIVE_SITES_WITH_TRAFFIC_SINCE
If [seconds] is not specified, all websites with visits in the last ". CronArchive::ARCHIVE_SITES_WITH_TRAFFIC_SINCE
. " seconds (" . round( CronArchive::ARCHIVE_SITES_WITH_TRAFFIC_SINCE/86400 ) ." days) will be archived.
--force-timeout-for-periods=[seconds]
The current week/ current month/ current year will be processed at most every [seconds].
Expand Down
3 changes: 1 addition & 2 deletions core/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public static function isFileBasedSessions()
*/
public static function start($options = false)
{
if (Common::isPhpCliMode()
|| self::$sessionStarted
if (self::$sessionStarted
|| (defined('PIWIK_ENABLE_SESSION_START') && !PIWIK_ENABLE_SESSION_START)
) {
return;
Expand Down

0 comments on commit c2e87b5

Please sign in to comment.