PyLucid CMS Logo

PyLucid headfile cache...

Note: This will be obsolete in the future, because we want to use django-compressor!

↑ PyLucid headfile cache  #

PyLucid stores CSS/JS files in database. Cache files would be written to filesystem, so the webserver (e.g. Apache) can send the files to the client (for better overall performance).

The cache filesytem path would be build in this way: MEDIA_ROOT + CACHE_DIR

↑ change cache path  #

To change the path of the headfile cache filesystem path, do this e.g.:

Python
1
2
from pylucid_project.apps.pylucid import app_settings as PYLUCID
PYLUCID.CACHE_DIR = "example"

Note: You can't set a absolute or relative path. You can only change the name!

↑ test headfile cache  #

If the python process can't create the cache files, PyLucid used a normal django view as fallback. But this is slow.

You must check, if the python process have write right to the cache path.

If cache works, run: "PyLucid admin menu" / "system" / "base check" and study the output ;)

↑ disable headfile cache  #

If you can't setup the webserver and caching didn't work, you should disable the caching by set settings.PYLUCID.CACHE_DIR = "" But this is a less-than-ideal solution!

e.g. insert this into your local settings:

Python
1
2
from pylucid_project.apps.pylucid import app_settings as PYLUCID
PYLUCID.CACHE_DIR = ""
0 comments for 'PyLucid headfile cache...':
    there exist no comment for 'PyLucid headfile cache...'
Leave a comment
tag navi cache

django-processinfo: 5.4 ms of 299.7 ms (1.8%)