Provide an API so other modules can programmatically control cache exclusions

Created on 30 September 2011, over 13 years ago
Updated 28 March 2025, 5 days ago

We created a module to allow other modules to programmatically set cache exclusions from e.g. _update or_install hooks. This is useful when a module creates dynamic pages which should not be cached, especially for automated deployment environments.

It's currently at https://github.com/jcartledge/cacheexclude_api . It's very simple and we've been using it in production for some time.

It provides the folllowing functions:

cacheexclude_api_add($path)
cacheexclude_api_remove($path)
cacheexclude_api_get()
cacheexclude_api_save($cacheexclude_list)

I'd like to see it merged - perhaps as cacheexclude.api.inc.php or alternatively as a submodule. Is this something you'd be receptive to?

✨ Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia james.cartledge

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    So this issue appears to have been opened against D7, which has since hit EOL. Going to close out since it's been untouched in 12 years. But if we need to reopen we can.

Production build 0.71.5 2024