DiscusWare, LLC.
Download Purchase Contact Us
Home
Support Home Documentation Knowledge Base Support Forums Support Request Advanced Services
How to deal with the template cache

Two procedures dealing with the Discus template cache: how to turn off the template cache manually, and how to bounce the template cache, forcing Discus to regenerate the cache when pages are next accessed.
Support Site Search
 

This document deals with the Discus template cache, a highly efficient method of rendering dynamic screens throughout the program. However, on a small number of servers, the template cache does not seem to work correctly, or when template changes are made, errors in the changes will cause the template cache to break. This document describes two common tasks related to the template cache that DiscusWare will occasionally advise a customer to do.

How to turn off your template cache through the administration program

If you can get into your administration program it's straightforward to turn off the template cache.

  1. Log into your administration program as the board administrator (typically "admin").

  2. Go to Options Manager. Select "Advanced Mode" if you do not see the "Other" tab.

  3. Click the "Other" tab. Scroll to the last section and uncheck the following box, then save options.

    [ ] Templates: Cache templates for better performance (requires more disk space)

How to turn off your template cache manually

If you cannot get in to your administration program, you can turn off the template cache manually.

  1. Go to your server by FTP and find your Discus administration directory (typically named like discus_admin_123456789). This directory contains your discus.conf file and others.

  2. In ASCII mode, download the options.txt file to your computer.

  3. Open options.txt in a text editor, such as Notepad. Find the following line and remove it from the file:

    tcache=2

    Save the modified file.

  4. In ASCII mode, upload the modified options.txt file back to your server, overwriting the existing file.

  5. Verify that permissions on options.txt are set to 0777 (rwxrwxrwx) if you have a unix server.

How to bounce the template cache

This deletes all files from the template cache, forcing Discus to generate new cached files the next time pages are generated.

  1. Go to your server by FTP and find your Discus administration directory (typically named like discus_admin_123456789). This directory contains your discus.conf file and others.

  2. Navigate into the data/tcache subdirectory, where you should see lots of *.pl files. Delete all files from this data/tcache directory.


Download Purchase Contact Us
Privacy Policy
Copyright © 2005, DiscusWare, LLC, All Rights Reserved