- // check upstream version?
- Worker::add(PRIORITY_LOW, 'CheckVersion');
+ // Optimizing this table only last seconds
+ if (Config::get('system', 'optimize_workerqueue', false)) {
+ DBA::e("OPTIMIZE TABLE `workerqueue`");
+ }
+
+ Config::set('system', 'last_cron_hourly', time());
+ }
+
+ // Ensure to have a .htaccess file.
+ // this is a precaution for systems that update automatically
+ $basepath = $a->get_basepath();
+ if (!file_exists($basepath . '/.htaccess')) {
+ copy($basepath . '/.htaccess-dist', $basepath . '/.htaccess');