Files
YG_FT_Platform/clear_cache.bat

26 lines
724 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
echo 正在清除所有缓存文件...
echo.
REM 切换到项目根目录
cd /d "%~dp0"
cd request
echo 1. 清除Python缓存文件...
REM 删除所有__pycache__目录
for /d /r . %%d in (__pycache__) do @if exist "%%d" rd /s /q "%%d" 2>nul
REM 删除所有.pyc文件
for /r . %%f in (*.pyc) do @if exist "%%f" del /q "%%f" 2>nul
echo Python缓存清除完成
echo.
echo 2. 清除浏览器缓存请手动清除或按Ctrl+Shift+Delete
echo 请在浏览器中清除"缓存的图片和文件"
echo.
echo 3. 重启服务提示
echo 请按任意键打开启动命令窗口,然后运行启动命令
echo 例如: python -m uvicorn src.core.app:app --host 0.0.0.0 --port 8000 --reload
echo.
pause