Helicon Ape 3.0.0.39 (and newer) got support of cache cleaning upon request.
Now, to clean cache just set the
cache-clear
environment variable. This will cause cache cleaning corresponding to the current request (context).Setting
cache-clear
variable using SetEnvIf directive provides flexibility of conditions that will lead to cache cleaning.For example, to trigger cache cleaning by requesting specific URL:
SetEnvIf request_uri ^/system/cache/clear/$ cache-clear=1
To trigger cache cleaning by appending specific query string value:SetEnvIf Query_String clear_cache_request cache-clear=1
For security purposes it may be necessary to clean cache only from definite IP address:SetEnvIf (Query_String clear_cache_request) and (Remote_Addr 11\.22\.33\.44) cache-clear=1
Cache cleaning may take some time, so be ready.When cache cleaning is over, the
error.log
(with info or higher verbosity level) will display the number of deleted records.Best regards,
Ruslan, Anton - Helicon Tech Team