Knowledgebase : Overnight Updates
Varnish refresh
Posted by Adam Faulkner on 23 December 2017 04:40 am

This file details the overight cron jobs that run on the various CTM systems.

::Drupal::

-: Export a custom structured version of the CMS data as XML: (~1hour)

:: Wordpress ::

-: Download XML from Drupal system:

Depricated:
-: Decompress and import the XML zip files into the WordPress database.
It didn't work. there is way too much data for wordpress to handle.
- XSL templates are now used instead. the updated XML already exists on the server, so why not read it directly?

Added:
-: Refresh Varnish ("root crontab", a temporary fix for the missing overnight updates problem)
45 5 * * * /etc/init.d/varnish restart
- currently the best and only solution, as varnish doesn't recognise that the page has been updated when PHP is reading from a file for each guide request.

::MIDO::

-: Download XML from Drupal system:

-: do some crazy stuff with Perl (GOOD LUCK/ DO NOT TOUCH WITH A 10 FOOT BARDGE POLL!!)