Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,075 of 9,075 pages
About the help in other languages
All help pages

Pregeneration of content cache for specific users

The pregeneration of content cache has been enhanced to allow the site administrator to choose which users the content cache should be made for. This can be used to prepare new content for certain users/usergroups. The…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/3.6/pregeneration_for_user.txt

Title: Pregeneration of content cache for specific users

Documentation:
The pregeneration of content cache has been enhanced to allow the site
administrator to choose which users the content cache should be made for.
This can be used to prepare new content for certain users/usergroups.
The default setting for this is to generate it for anonymous users.

Configuration:
To configure this the variable PreviewCacheUsers setting in site.ini is used.
It is an array with user IDs of which should be used. The system will then use
the assigned roles for that user to generate the content cache file.

It is also possible to use some special identifiers as entries, these are supported:
- anonymous - Means to fetch the user which is defined as anonymous users
- current - Means to use the user which is publishing the object

If you intend to create cache for a given user group you should choose one specific user
from the group. For instance you could create a dummy user for this purpose.

Example:
Here we generate cache for anonymous, the current user and a specific user.

PreviewCacheUsers[]
PreviewCacheUsers[]=anonymous
PreviewCacheUsers[]=current
PreviewCacheUsers[]=86

Something wrong on this page? Report an error

Documentation license

This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.

Copyright (C) 1999 - 2014 eZ Systems AS and contributors