CLI Commands
Speedy comes with a couple of CLI commands to assist with cache clearing. To learn more about using CLI commands with ExpressionEngine check out their docs.
This command is fairly straightforward. It is similar to clicking the "Clear All" button in the Speedy admin interface. It clears everything from all the caches.
This is a command that can be useful if you need to publish content on a specific date and time, but still want to use caching. Cached items that contain entries tags will only display entries that were rendered when the cache item was generated. If you use the Entry Date field to publish entries at a certain time, then the cached items will not contain entries with a future entry date.
In order for this command to work you need to add a crontab entry to your server to run this command every minute. When it executes it will look to find any entries with the entry_date
within the next minute, then bust the cache for any entries found. It is perfectly fine to run this command every minute. It performs a very simple database query, and if it does not find any entries it simply aborts. Then it will try again in another minute, etc.
If the entry is a listing on lets say a news page, then the cache clearing rules for the channel that entry is in will need to clear the parent news page in order for the list of entries to be updated.
Last updated