Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14831

hide cronjob is totally useless for big sites

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.0.3, 4.1.0
    • Fix Version/s: 4.4.0beta2
    • Component/s: Cronjobs
    • Labels:
      None

      Description

      Hi,

      Well, let's make it short:
      Never ever think about using the current "hide" cronjob for hiding nodes at bigger sites.

      The current hide cronjob fetches all content objects of a specific class defined in the content.ini, loads the datamap and checks if the date of the end time attribute is older than the current time.

      Well, if you have 45.000 articles that could last some time... maybe a bit longer... maybe till the end of the days...

      So, I've rewritten the cronjob. I only fetch the objects of the specific classes which are NOT hidden and I am using the attribute filter to get only the objects where the end date is bigger than 0 and smaller than the current time.

      One only disadvantage of my cronjob: You MUST run the cronjob at a siteaccess where the site.ini has

      [SiteAccessSettings]
      ShowHiddenNodes=false

      (So, don't run it at your admin siteaccess)

      Best wishes,
      Georg.

        Attachments

        1. gwfhide.php
          3 kB
        2. gwfhide1.php
          3 kB
        3. myhide.php
          4 kB
        4. myunhide.php
          4 kB
        5. myunhide.php
          4 kB

          Issue Links

            Activity

              People

              Assignee:
              bd Bertrand Dunogier
              Reporter:
              emil.webber Georg Franz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: