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

hide cronjob is totally useless for big sites

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.4.0beta2
    • 4.0.3, 4.1.0
    • Cronjobs
    • 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. myunhide.php
          4 kB
        2. myunhide.php
          4 kB
        3. myhide.php
          4 kB
        4. gwfhide1.php
          3 kB
        5. gwfhide.php
          3 kB

        Activity

          People

            bd bd
            emil.webber emil.webber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: