Skip to content
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

front end interface for super_users to enable and disable django template caching #525

Closed
eschipul opened this issue Oct 28, 2016 · 8 comments
Labels
New Feature New Features Being Worked on

Comments

@eschipul
Copy link
Member

From a client "It would be convenient if there was a setting in Tendenci where the client could turn this on and off for development purposes."

During development a site is typically under a light load and template caching can slow down the development process. Taking a site live and then enabling template caching is the best way to achieve optimal speed. The catch is when you need to do an urgent update like adding a sponsor to the bottom of your home page, caching causes this to not be visible for however long the caching is set.

Thus for live sites it's reasonable to be able to turn off template caching, or perhaps force-refresh a specific template after editing it.

@eschipul eschipul added the New Feature New Features Being Worked on label Oct 28, 2016
@dco5
Copy link
Contributor

dco5 commented Oct 29, 2016

When I started developing themes this was a major nightmare. I was pulling my hair out trying to figure out why I could not see the changes I made on the template, very very frustrating, once you know it is still a pain having to restart every time you make a change.

@aprildh31
Copy link
Contributor

Agreed. Now that I figured out it wasn't browser caching and since I'm working on a local install right now, I just leave a terminal open and execute python manage.py clear_cache ; service tendenci restart periodically while I'm making changes to my custom template. For a small enough site with little traffic it isn't a huge problem (just annoying) but could be an issue for large or high traffic sites.

@goetzk
Copy link
Contributor

goetzk commented Jun 9, 2018

Just last night I had that conversation with a board member:
"How do I update templates?"
provides link to template editor
"I made some edits, how do I make the changes public?"
Uh... you ask me to restart things.

@goetzk
Copy link
Contributor

goetzk commented Jun 9, 2018

For cross reference, similar to #476

@PaulSD
Copy link
Contributor

PaulSD commented Jul 4, 2018

I've fixed this in T11. The relevant fixes are scattered in a number of commits, but for example, this one is relevant: 61f8df2

@eschipul
Copy link
Member Author

eschipul commented Jul 5, 2018

@PaulSD - brilliant. THANK YOU!

@goetzk - I'll close #476 as you noted and cross reference this issue.

@eschipul
Copy link
Member Author

eschipul commented Jul 5, 2018

Closing as resolved.

@eschipul eschipul closed this as completed Jul 5, 2018
@goetzk
Copy link
Contributor

goetzk commented Jul 6, 2018

+1 awesome work @PaulSD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature New Features Being Worked on
Projects
None yet
Development

No branches or pull requests

5 participants