'CS50 Ide flask slow and errors
I have finished my final project, a game website kind of thing that I used flask for. I finished this project around 2 months ago and I put off submitting it until now but as I went to make the video I realized my website was very slow. (The entire time I have been using the cs50 ide) And that a specific page wouldn't load up and the other pages were taking ages, so I deleted all the files in the "flask_sessions" as the sessions wouldn't affect the entire program if I deleted them. It worked but I couldn't get to the page that I couldn't get to before. I got these errors in the terminal where I ran my flask application.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/cachelib/file.py", line 162, in get
with open(filename, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/FP/flask_session/a64629a7c4037bc0e4fc3f1900f2250a'
INFO: 192.168.40.114 - - [15/Aug/2021 08:45:34] "GET /home HTTP/1.0" 302 -
INFO: 192.168.40.114 - - [15/Aug/2021 08:45:36] "GET /login HTTP/1.0" 200 -
WARNING: Exception raised while handling cache file '/home/ubuntu/FP/flask_session/a64629a7c4037bc0e4fc3f1900f2250a'
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/cachelib/file.py", line 162, in get
with open(filename, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/FP/flask_session/a64629a7c4037bc0e4fc3f1900f2250a'
Any help is appreciated thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
