-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Template caching #343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
tmpdirs are cleaned up on system reboot, no? I think the offline feature needs the cached templates to be persisted? |
I think it's much easier to have the same dir across all OS even if it's not standard. If you ever have a cache issue you can use the same command to clean it |
@yyx990803 Well, my example uses os.tmpdir() method only for uncommon platforms like 'freebsd'. All other folders are widely used for persistent storage of application's cache. Just have a look how ugly cache folder are on Windows:
@posva I can't use the same command because commands are different for windows and linux platforms. All platforms has own rules for storage of this data type and cli utils should respect that. |
Maybe change it to |
I'll be very grateful if you move cache folder to |
@iatsiuk Who cares about an ugly directory tree... You can hide them if you want.
Actually, yes you can, it depends on the command. The point was that the folder being the same across different OS makes it easy to deal with any cache-related issue Because it doesn't matter where you are, you know what folder to deal with. Therefore, having different cache dirs is a downside. What are the benefits of such rules? |
I would like to introduce more standard-friendly folder for storing template files and make PR with the necessary changes. Are you guys interested in it?
The text was updated successfully, but these errors were encountered: