Results 1 to 2 of 2

Thread: tl_log grows quite large

  1. #1
    New user
    Join Date
    04-17-18.
    Posts
    1

    Default tl_log grows quite large

    The table for the logs grows quite large over time. I noticed some websites had a 10Mb tl_log table. I am sure somewhere there must be a functionality that clears the log automatically, but haven't found yet how to activate it.

    Can someone point me in the right direction?

    If it is supposed to be some cron job, then I would advise to change that because most people do not know or how or realize that they should set something up.

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    495

    Default

    The "poor mans" cron gets triggered with the fe_page template.
    PHP Code:
    <?= $this->mootools ?>
    This is a JavaScript at the end of the BODY.

    The checkbox "Disable the command scheduler" in system-settings has to be unchecked (default unchecked).

    The field "Storage time for log entries" in system-settings has to be set to a reasonable value (default 1209600 seconds for 14 days).

    This is for Contao 3.5. With Contao 4 things may be a bit different.

    Looks like the system log gets not cleared by the cron, only when you open "System - System log" in the BE. See https://github.com/contao/core/blob/....php#L330-L334
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •