For example, the data is updated every day. to reduce access to the database, the data queried on the current day is stored in the cache file and will be updated the next day. how can this problem be achieved, delete cached files? For example, the data is updated every day. to reduce access to the database, the data queried on the current day is stored in the cache file and will be updated the next day. how can this problem be achieved, delete cached files?
Reply content:
For example, the data is updated every day. to reduce access to the database, the data queried on the current day is stored in the cache file and will be updated the next day. how can this problem be achieved, delete cached files?
Scheduled taskCrontab
# Execute 00 00 ***/server/php7.02/php/htdocs/example.web.com/action/post/push.php at every day
Does the crontab assigned to the system work with the php script or the cli mode of thinkphp?
For linux, use crontab.
If not, write the while put directly ..
Crontab is recommended.
It is recommended that you use the crontab and php scripts for scheduled tasks.
Crontab scheduled task. it is reasonable to call the mession. php script.