Title: Automatically clear cache
Last modified: August 21, 2016

---

# Automatically clear cache

 *  Resolved [heydonovan](https://wordpress.org/support/users/heydonovan/)
 * (@heydonovan)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/automatically-clear-cache/)
 * Hi there! We are constantly having to monitor the cache directory for this plugin,
   as there doesn’t seem to be any automated process for purging it. Just tonight,
   I had to clear a cache directory that was 24GB in size, running the latest version:
 * Version 1.11.4-pro
 * Let me know if you have plans to add a purge feature , or better, if the feature
   already exists, how I might be able to turn it on. Thanks! 🙂
 * [https://wordpress.org/plugins/all-in-one-event-calendar/](https://wordpress.org/plugins/all-in-one-event-calendar/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/automatically-clear-cache/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/automatically-clear-cache/page/2/?output_format=md)

 *  [asaracena](https://wordpress.org/support/users/asaracena/)
 * (@asaracena)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631893)
 * I beg you to add a clear cache button in your plugin – we just installed it, 
   used it for one day and there were 30+ folders added – each with a single php
   file inside.
 * I wouldn’t have even known this issue existed were it not for WordFence flagging
   the changed files.
 * Thank you!
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631894)
 * [@heydonovan](https://wordpress.org/support/users/heydonovan/) it’s a more complex
   issues, it’s related to google crawlers. We have some code in place in version
   2.0 to automatically modify the robots.txt file to stop the crawling.
    If you
   tell me the address of the calendar page i can tell you what to add to the robots.
   txt. If you want to upgrade to 2.0 ( which basically requires much less processing
   power and memory ) please contact [our website for help on upgrading](http://time.ly)
   as some things have changed and remember perform backups before upgrading.
 * [@asaracena](https://wordpress.org/support/users/asaracena/) what version are
   you using?
 *  [asaracena](https://wordpress.org/support/users/asaracena/)
 * (@asaracena)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631895)
 * I just downloaded it yesterday so I assume it’s 2.1.9 (and using latest version
   of WordPress – 4.0.1). I cleared the cache using FTP and doing this totally trashed
   the calendar – there was nothing left but the one event we posted – and that 
   was only a paragraph. The entire calendar format was just gone.
 * I’ve uninstalled it for now. If you have a suggestion please let me know. My 
   partner really liked that calendar.
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631896)
 * exactly what did you clear?Because we have a cache folder which ships with the
   plugin where pre compiled twig templates are stored. You could try to delete 
   the folder with ftp and re-copy it
 *  [asaracena](https://wordpress.org/support/users/asaracena/)
 * (@asaracena)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631897)
 * Since I was getting too many messages from WordFence like this:
    Warnings: * 
   Modified plugin file: wp-content/plugins/all-in-one-event-calendar/cache/twig/
   9c/3c/1820db174d7efba416743bbb9bf744e8454155f8129f69296092b49c45d3.php * Modified
   plugin file: wp-content/plugins/all-in-one-event-calendar/cache/twig/aa/61/6d3f918f480e4f6f0dabdeee1324d87d759ec18352a21a1cfcee8802f528.
   php * Modified plugin file: wp-content/plugins/all-in-one-event-calendar/cache/
   twig/dc/78/b950182efb8f436b144938fb0dc48cf395d7daabe20293234dbcf2b26545.php *
   Modified plugin file: wp-content/plugins/all-in-one-event-calendar/cache/twig/
   e2/c5/4407992fc7f64fc763c8fa820f4d1ef92de870acc466bbd2209e5965d014.php
 * I just deleted everything in the cache folder never thinking that there would
   be files necessary for the calendar to function in there. After reading your 
   message I assume that the twig folder should not have been deleted.
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631898)
 * The Twig folder should not be deleted but it shouldn’t also be written by our
   plugin.
    Actually it should be written only if AI1EC_DEBUG is set to true otherwise
   it should just be used by twig for reading templates. Were the files being written
   every time?
 *  [asaracena](https://wordpress.org/support/users/asaracena/)
 * (@asaracena)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631899)
 * For the two days that your plugin was installed I received messages from WordFence.
   These are the files that were changed:
    Alert generated at Thursday **11th of
   December** 2014 at 01:50:37 AM
 * Warnings:
 * * Modified plugin file: wp-content/plugins/all-in-one-event-calendar/cache/twig/
   9c/3c/1820db174d7efba416743bbb9bf744e8454155f8129f69296092b49c45d3.php
    * Modified
   plugin file: wp-content/plugins/all-in-one-event-calendar/cache/twig/aa/61/6d3f918f480e4f6f0dabdeee1324d87d759ec18352a21a1cfcee8802f528.
   php * Modified plugin file: wp-content/plugins/all-in-one-event-calendar/cache/
   twig/dc/78/b950182efb8f436b144938fb0dc48cf395d7daabe20293234dbcf2b26545.php *
   Modified plugin file: wp-content/plugins/all-in-one-event-calendar/cache/twig/
   e2/c5/4407992fc7f64fc763c8fa820f4d1ef92de870acc466bbd2209e5965d014.php
 * Alert generated at Wednesday **10th of December** 2014 at 07:43:19 AM
 * Warnings:
 * * Modified plugin file: wp-content/plugins/all-in-one-event-calendar/cache/twig/
   08/e4/4d5fc50332367b2d7e81902230ac0e7ea950ee003ec7a490752fc6534c00.php
    * Modified
   plugin file: wp-content/plugins/all-in-one-event-calendar/cache/twig/1f/25/bacc16e82305cef35f2d4954e3a58cf88f86b74ba3bdfdb3edd107c03a6d.
   php * Modified plugin file: wp-content/plugins/all-in-one-event-calendar/cache/
   twig/21/cf/b7e0c7543e64053052e7d3df401f7fdde0a3873bf1f837c0be10edd95099.php *
   Modified plugin file: wp-content/plugins/all-in-one-event-calendar/cache/twig/
   27/15/acf678c380d630c83d3a7e40c2555c0b4cb21a16d95a1cc06a601f043e45.php * Modified
   plugin file: wp-content/plugins/all-in-one-event-calendar/cache/twig/49/32/ea4178e92f66ddbdb1feb9ec1496773dcb031265fc870a3e981abc68ca2a.
   php * Modified plugin file: wp-content/plugins/all-in-one-event-calendar/cache/
   twig/5c/a1/499a9c32090a9a368a28b4c13261022bf5d11f22b5211fb873b104fc70e4.php *
   Modified plugin file: wp-content/plugins/all-in-one-event-calendar/cache/twig/
   c1/80/4f545c5b33b8114cc21fe6cb5c59952fa8c7d680d237c3ca4d3f63b96c1c.php * Modified
   plugin file: wp-content/plugins/all-in-one-event-calendar/cache/twig/f9/27/e9ebb965697e227fa8ba7991946a80bc34917fe8e437edbc0c4567956326.
   php * Modified plugin file: wp-content/plugins/all-in-one-event-calendar/cache/
   twig/fe/5f/a372e0eb51f713beb664be0cf0c9c8c78572b1851c15eac685f6cd98c181.php
 * Unfortunately I didn’t save these files so I don’t know what the changes were
   as I lost patience and uninstalled the plugin. Still seems odd that they were
   changed if they are only templates.
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631900)
 * I will try to install wordfence and see what’s happening here.
    In any case i
   wouldn’t see any security issue here, but let’s try to see what’s happening might
   be a bug we have with Twig
 *  [asaracena](https://wordpress.org/support/users/asaracena/)
 * (@asaracena)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631901)
 * That would be good news – if it’s only a bug with Twig I would consider using
   the calendar on at least two of my sites. Thanks for your reply.
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631902)
 * I’m installing the Free version, have you got the free version or the paid version?
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631903)
 * One more questions, in the two days did you ever set AI1EC_DEBUG to true?
 *  [asaracena](https://wordpress.org/support/users/asaracena/)
 * (@asaracena)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631904)
 * Used the free version – out of the box, no alterations. No idea how to set AI1EC_DEBUG
   to true.
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631905)
 * What platform is your hosting using?Is it a Windows hosting or Linux?Because 
   we had an error which recompiled templates but only on Windows platform.
 *  [asaracena](https://wordpress.org/support/users/asaracena/)
 * (@asaracena)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631906)
 * Our hosting is Linux on Godaddy.
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/automatically-clear-cache/#post-4631907)
 * Hi, i’ve been running WordFence for a while but it reported nothing. I think 
   that there is no security issue, the worst it could be is that, for some reasons,
   our plugin is not using cache at it should, but it’s just compiling twig templates,
   nothing more

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/automatically-clear-cache/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/automatically-clear-cache/page/2/?output_format=md)

The topic ‘Automatically clear cache’ 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/)

 * 18 replies
 * 4 participants
 * Last reply from: [joshhowenstine](https://wordpress.org/support/users/joshhowenstine/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/automatically-clear-cache/page/2/#post-4631910)
 * Status: resolved