Title: Trigger rescan from external php?
Last modified: July 11, 2017

---

# Trigger rescan from external php?

 *  Resolved [EricPeterson](https://wordpress.org/support/users/ericpeterson/)
 * (@ericpeterson)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/trigger-rescan-from-external-php/)
 * I’m working on connecting a database of events to a calendar system that is nicely
   viewable and end-users can subscribe to in their own personal calendars. The 
   plugin All-in-One Event Calendar seems to do that nicely… my database can create
   an iCal format .ics file and ai1ec reads it. But ideally, I would like new events
   to show up immediately on the webpage calendar. Ai1ec only reads the ics file
   about once an hour. Is there a way that I can trigger the rescan upon adding 
   something new to my database? Maybe some file from the plugin that I can include
   in my own php then call rescan() or something like that?
 * Or, how does ai1ec know that it is time to rescan the ics… maybe I can alter 
   a timestamp somewhere to make the rescan run…?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [Sunny Lal](https://wordpress.org/support/users/sunny454/)
 * (@sunny454)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/trigger-rescan-from-external-php/#post-9320741)
 * Hi [@ericpeterson](https://wordpress.org/support/users/ericpeterson/),
 * Your feeds are refreshed using your server’s cron function, and yes it is set
   to hourly. There is really no need to do this more often, as the refresh may 
   be 1 event or more, and doing it more often is inefficient and unnecessarily 
   consumes server memory. Nevertheless, if you insist you can manually execute 
   the cron job. If you are not familiar with how to do this, then you can manage
   your cron jobs by installing a free WordPress plugin to do so.
    -  This reply was modified 8 years, 11 months ago by [Sunny Lal](https://wordpress.org/support/users/sunny454/).

Viewing 1 replies (of 1 total)

The topic ‘Trigger rescan from external php?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/all-in-one-event-calendar.svg)
 * [Timely All-in-One Events Calendar](https://wordpress.org/plugins/all-in-one-event-calendar/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-event-calendar/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Sunny Lal](https://wordpress.org/support/users/sunny454/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/trigger-rescan-from-external-php/#post-9320741)
 * Status: resolved