:: ConstructrCMS :: News :: ChangeLog :: Download :: Plugins :: Documentation ::

HowTo enable Frontend-Caching inConstructrCMS?

Open the Root index.php in Your favorite Text-Editor or IDE. This file should be located at Root_LEVEL_OF_YOUR_INSTALLATION/index.php. Take a Look around at Line 21 - You should see something like this:

    $CACHING = FALSE; // to switch caching off change to FALSE

Edit this File and change Line 21 into:

    $CACHING = TRUE; // to switch caching off change to FALSE

Caching is now enabled! Do not wonder if altering the Content of a Page in Your ConstructrCMS-Backend does not take effect in Your Frontend - try to take a Look at the Sourcecode of the Website You´re looking at. You should see something like this in the first two lines of the Sourcecode:

<!-- CACHE 2008-12-27 13:12:22 -->

If not, reload the Page - a cached Document will be created and you should see this two Lines at the Beginning of Your Website-Sourcecode now. If You alter the Content of an Element of Your Website that should be visible in Frontend immedeately - click to the Link FE-Cache leeren or Delete cached FE-Files if You are using the BE_English-Config. This Link is available at the Pages-Section, Content-Section and Workspace-Section. If You clear your Cache all Cache-Files in Your Frontend will be created the next Time a Visitor arrives.


HowTo disable Frontend-Caching inConstructrCMS?

Open the Root index.php in Your favorite Text-Editor or IDE. This file should be located at Root_LEVEL_OF_YOUR_INSTALLATION/index.php. Take a Look around at Line 21 - You should see something like this:

    $CACHING = TRUE; // to switch caching off change to FALSE

Edit this File and change Line 21 into:

    $CACHING = FALSE; // to switch caching off change to FALSE

Caching is now disabled! All created Cache-Files will be keept until You enable Caching. Take a Look at the Sourcecode of the Website-Frontend You´re looking at. No Caching and no HTML-Comment like:

<!-- CACHE: 2008-09-17 22:09:53 -->

That´s all!


How to clean the Frontend-Cache?

Several Ways to clean the FE_CACHE:

  1. Open Your Frontend with added $_GET-Parameter: http://your-domain.com/?clean_cache (Constructr CMS Version > 3.02.6)
  2. Clean the FE-Cache in Your Backend-Sections: Pages, Content and Template by clicking the Button "Clean FE_CACHE"

The Cache will be rebuild by Page-Request´s at the Frontend and enabled Caching in ROOT/index.php


If You are using Version 3.02.7 Beta or above

Versions greater than 3.02.6 Stable got a constructr_settings.inc.php File with a global Array of several Constructr CMS Settings. The File constructr_settings.inc.php is located at ROOT/data/config/constructr_settings.inc.php. Just edit this File and Constructr CMS will handle the Settings out of the Box - this is much more simple than editing several Files to individualize Your Constructr CMS Copy. Settings that are handled in this File are: Cache, Maintenance Mode, TPL Handling, Backend Menu-Structure, Setup, ...