Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brookinsconsulting/9a38194fce79a7c353ca to your computer and use it in GitHub Desktop.
Save brookinsconsulting/9a38194fce79a7c353ca to your computer and use it in GitHub Desktop.
Example working staticcache.ini.append.php configuration file. Tested with ezpublish5_community_project-2014.07.0-gpl-full
<?php /*
[CacheSettings]
# This setting has been deprecated since version 4.4
# Hostname is read from site.ini.[SiteSettings].SiteURL per siteaccess
# defined in staticcache.ini.[CacheSettings].CachedSiteAccesses
# This setting will be removed in future release
HostName=
StaticStorageDir=var/ezwebin_site/static
MaxCacheDepth=10
# A list of url's to cache. You can use the * wildcard to include a whole
# subtree.
CachedURLArray[]
CachedURLArray[]=/
CachedURLArray[]=/ez
CachedURLArray[]=/ez/*
CachedURLArray[]=/about
CachedURLArray[]=/about/*
CachedURLArray[]=/people
CachedURLArray[]=/people/*
CachedURLArray[]=/solution
CachedURLArray[]=/solution/*
CachedURLArray[]=/snippet
CachedURLArray[]=/snippet/*
CachedURLArray[]=/project
CachedURLArray[]=/project/*
CachedURLArray[]=/new_stack
CachedURLArray[]=/new_stack/*
CachedURLArray[]=/help
CachedURLArray[]=/help/*
CachedURLArray[]=/new
CachedURLArray[]=/new/*
CachedURLArray[]=/about
CachedURLArray[]=/about/*
CachedURLArray[]=/minutes
CachedURLArray[]=/minutes/*
CachedURLArray[]=/learning
CachedURLArray[]=/learning/*
CachedURLArray[]=/discussion
CachedURLArray[]=/discussion/*
CachedURLArray[]=/updated
CachedURLArray[]=/updated/*
# A list of site accesses to generate static content for
CachedSiteAccesses[]
CachedSiteAccesses[]=en
CachedSiteAccesses[]=fr
CachedSiteAccesses[]=de
CachedSiteAccesses[]=cn
CachedSiteAccesses[]=es
CachedSiteAccesses[]=nl
CachedSiteAccesses[]=pl
CachedSiteAccesses[]=pt
# A list of locations that will be updated whenever an object is published. You
# can NOT use a wildcard here.
AlwaysUpdateArray[]
AlwaysUpdateArray[]=/
# Defer cache generation to cronjob.
CronjobCacheClear=disabled
# Controls whenever <!-- Generated: YYY-MM-DD HH:MM:SS --> comment
# should be appended into the generated static cache file.
AppendGeneratedTime=true
*/ ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment